Re: Integer keys in registry
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Integer keys in registry
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2012年5月17日 08:46:30 -0300
> 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