lua-users home
lua-l archive

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


Forgive the repeated questions about GLOBALSINDEX. But is this in 5.1:

  lua_rawget(L, LUA_GLOBALSINDEX);

satisfactorily replaced with this in 5.2:

  lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS);
  lua_insert(L,-2);
  lua_rawget(L,-2);
  lua_remove(L,-2);


I'm trying to port the excellent lgob bindings (Lua to GObject, Cairo, GTK, ATK, Pango and many more) to 5.2 and want to make sure I get this right :-)

If I'm right, is there nevertheless an easier way to do it?

Thanks.