Re: Working with Lua 5.1 'require' for fake/virtual/non-standard files
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Working with Lua 5.1 'require' for fake/virtual/non-standard files
- From: Diego Nehab <diego@...>
- Date: Mon, 5 Jun 2006 18:27:47 -0400 (EDT)
Hi,
So I was wondering if somebody can explain to me how I can work with
the new 5.1 system to load my zipped/archived scripts, in a way that
doesn't require me to modify stock Lua or modify all my scripts. (I
prefer my changes to be in the C part of my program).
The canonic way to do this is to setup a new loader. If you
take a look at the code in compat-5.1.lua, which is easier
to read than loadlib.c, it should be easy to figure out what
to do.
Regards,
Diego.