lua-users home
lua-l archive

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


> The following minimal code does not set the modules.( OOLUA::run_chunk
> just runs the chunk checking for error etc it is not important.)

In Lua 5.2, libraries no longer create globals; they just return
the library table.

luaL_openlibs calls luaL_requiref instead of calling luaopen_*,
and luaL_requiref sets the corresponding globals.