lua-users home
lua-l archive

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


> but that doesn't get around the fact that the luaL_register function
> doesn't always seem to do what it says on the tin.

How so? http://www.lua.org/manual/5.1/manual.html#luaL_register says:

   If there is a table in package.loaded[libname] or in variable libname,
   reuses this table instead of creating a new one.

Perhaps the only thing that's is not clear in the docs is that if
package.loaded[libname] contains a table then the global variable
libname is not created. Is that what you mean?