[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: what replacement for (obsolete) lua_ref in 5.0 ?
- From: Benoit Germain <bgermain@...>
- Date: Tue, 11 Feb 2003 12:30:45 +0100
Ok, great.
> -----Message d'origine-----
> De : Roberto Ierusalimschy [mailto:roberto@inf.puc-rio.br]
> Envoyé : mardi 11 février 2003 10:05
> À : Multiple recipients of list
> Objet : Re: what replacement for (obsolete) lua_ref in 5.0 ?
>
> More or less. The macros lua_ref/lua_unref/lua_getref are for
> compatibility, but the functions luaL_ref/luaL_unref are not. That is,
> Lua keeps a reference mechanism, but now you can choose to put your
> stuff into the registry or into a private table of yours
> (which may be a
> weak table, for instance).