[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua libraries
- From: Ignacio Castaño <castanyo@...>
- Date: Thu, 31 Jan 2002 00:07:13 +0100
<jim@mathies.com> wrote:
> Seems a system like this assumes a couple things:
>
> - for WIN32, the Lua vm is also a DLL and the dynamically loaded
> 'interface DLL' is linked to it's stub. (otherwise, how does the interface
> DLL gain access to the lua vm functional interface?)
doesn't have to. The lua library can be statically linked with lua.
That brings some problems to my mind. What if the library is built with a
different lua version? A possible solution would be to add another
entrypoint in the library to obtain the lua version, and check that before
loading it.
> - the vm is unmodified, including through the use of 4.1's
> LUA_USERSTATE. Which, makes programming context based
> interfaces tough, since you can't inject anything into the Lua
> state structure.
yes, but you can always rebuild the libraries with your own lua flabor.
Ignacio Castaño
castano@asidesoft.com
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com