[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.0 changes question
- From: Brian Hook <hook_l@...>
- Date: Thu, 6 Mar 2003 10:18:08 -0800
>>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