lua-users home
lua-l archive

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


On Sun, Apr 8, 2012 at 2:59 PM, Marc Balmer <marc@msys.ch> wrote:
> Am 08.04.12 18:18, schrieb Franklin Dijkstra:
>> I kinda ment the same way Java does it, include all libs in a jar, so
>> people only need to download the JRE. But then the same with lua. So
>> people dont have to download a GUI lib and a aduio lib etc to get it
>> working.
>
> And what about Lua modules that are written on other languages than Lua,
> like e.g. C bindings?
>
> I think what you propose will not work.

what _can_ be done (and i think already done by some people) is to use
some filesystem-like library to access the contents of a zipfile as a
read-only filesystem, then add that filesystem to the apropriate
paths.

a couple examples just from the first page of google:

http://zziplib.sourceforge.net/
http://users.telenet.be/tfautre/softdev/zfs/

of course, this has nothing to do with the Lua core language.  more
like a feature of the embedding application.  it _could_ be
implemented in the lua command, but not likely to be included in the
standard package.

-- 
Javier