lua-users home
lua-l archive

Lua 5.2 alternative for "while (lua_next(L, LUA_GLOBALSINDEX) != 0) {"

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

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