[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Garbage collection of function tables
- From: Mike Pall <mikelu-0903@...>
- Date: Sat, 28 Mar 2009 14:00:04 +0100
Ralph Hempel wrote:
> No, lot libraries from package.require(). These are the
> libraries that are loaded at boot time in the Lua startup
The table of loaded modules is filled by luaL_register(). This
mechanism does *not* depend on the package library being loaded.
If you load the package library it just adds a publicly visible
reference to this table as package.loaded.
Morale: if in doubt, read the source. :-)