Hi All,
I improved the very good LuaFun library some time ago to support cdata
metamethods _if_ the ffi.miscmap is exposed by LuaJIT (need to recompile it)
otherwise it’s fully backward compatible if not exposed. You can find the file
in my fork:
https://github.com/MethodicalAcceleratorDesign/luafun ;
<https://github.com/MethodicalAcceleratorDesign/luafun>
It also contain a nice bind operation (PR provided by coldfix) that behaves
like list comprehension by providing the Haskell-like Monad bind (operator
=). For example (using LuaFun and my lambda syntax), the python code:
Attachment:
smime.p7s
Description: S/MIME cryptographic signature