lua-users home
lua-l archive

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


>>The second is that lua_getglobals() now requires a second parameter
>> "idx", what should I use to get the same behaviour as the old
>>lua_getglobals()?
>
>If all you want is to access the global environment, you simply use
>the pseudo-index LUA_GLOBALSINDEX.

so whenever I used to call lua_getglobals(lua) in 4.0 I should now 
just substitute lua_getglobals(lua,LUA_GLOBALSINDEX)?

Thanks,

Brian