lua-users home
lua-l archive

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


> So, if I don't use explicitly luaL_ref with the registry, no integer key will be reserved by the reference mechanism?

No, not by the reference mechanism, but Lua 5.2 uses two integer keys in
the registry:

/* predefined values in the registry */
#define LUA_RIDX_MAINTHREAD	1
#define LUA_RIDX_GLOBALS	2