[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Lua that generates executables?
- From: Quinn Tyler Jackson <quinn-j@...>
- Date: Tue, 16 Nov 2004 12:33:28 -0800
> And what about glueing several Lua modules together into a common
> .exe? How would they find and load each other?
You could do that by writing a light-weight executable stub in something
like C or C++ that would have the responsibility of searching an index at
the end of itself for a module called "main" or something like that -- the
index would point to pre-compiled Lua chunks that had also been attached to
the stub. The library loading calls of Lua would then have to be modified
slightly to first search the tacked-on-index -- and if it found the package
there, it could load it instead of the chunk.
LuaLink sounds like an interesting project. Using fstreams, it could
probably be done fairly portably.
Quinn Tyler Jackson