lua-users home
lua-l archive

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


Peter Cawley wrote:
On Sat, Mar 28, 2009 at 12:51 PM, Ralph Hempel
<rhempel@hempeldesigngroup.com> wrote:
No, lot libraries from package.require(). These are the
libraries that are loaded at boot time in the Lua startup
code...

luaL_register, which is called by all of the standard libraries, will
store them in registry._LOADED

Hmmm, I just powered up my Lua test VM (Win2K) and I see that the
standard libraries are actually listed in package.loaded[]

And, rereading my trusty PiL I can't even get to the registry from
Lua, it's only acessible from C.

So, after a bit of testing,

math = nil
package.loaded.math = nil

Seems to be doing the right thing...

Ralph