lua-users home
lua-l archive

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


>I don't know what the plan for Lua and library loading might be, but my
>libraries stash their name and version number in the _LIBS_LOADED
>global, if it exists.

Use the registry instead. The registry is an ordinary Lua table that is
always available. It was introduced in 4.0 just for this kind of application. 
--lhf