lua-users home
lua-l archive

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


> 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