lua-users home
lua-l archive

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


Ralph Hempel wrote:
> No, lot libraries from package.require(). These are the
> libraries that are loaded at boot time in the Lua startup
> code...

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. :-)

--Mike