[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: Binary Modules for Lua [was Re: External modules]
- From: Gunnar Zötl <gz@...>
- Date: Thu, 21 Nov 2002 20:02:44 +0100
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