[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.0 changes question
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 06 Mar 2003 09:54:45 -0300
> The first is that lua_getn() has gone away -- what's the proper
> replacement?
Lua 5.0 final will have "luaL_getn".
> 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.
-- Roberto