lua-users home
lua-l archive

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


Hi,

Does anyone which alternative Lua 5.2 code can be used for:

while (lua_next(L, LUA_GLOBALSINDEX) != 0) {

Is the following an option?

while (lua_next(L, LUA_RIDX_GLOBALS) != 0) {

Regards,

Joop.