lua-users home
lua-l archive

Re[2]: Binary Modules for Lua [was Re: External modules]

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Björn de Meyer wrote:
BDM> Hmmmm... not bad... I'm currently trying to get a similar though
BDM> slightly different idea to work. My idea was to be able to say in 
BDM> Lua:
BDM> libc = loadlib("c");
BDM> malloc = libc:declare("malloc","pointer","int")
BDM> ...
Something like that can be achieved with the binding of lua to the ffi
library, I think. The only problem with that is, that the ffi lib is
quite dated, and I am not sure about how well it works on windows.
However, you might want to look at it:
http://luagnome.free.fr/luaffi.php3
rgds,
Gunnar

AltStyle によって変換されたページ (->オリジナル) /