lua-users home
lua-l archive

Re: Standard Lua modules in 5.2.1

[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.

AltStyle によって変換されたページ (->オリジナル) /