[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Standard Lua modules in 5.2.1
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 5 Jul 2012 18:48:47 -0300
> 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.