[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Unlocked References not supported by Lua5
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 13 Aug 2003 21:39:58 -0300
>I find the following in Lua.h...
>#define lua_ref(L,lock) ((lock) ? luaL_ref(L, LUA_REGISTRYINDEX) : \
> (lua_pushstring(L, "unlocked references are obsolete"), lua_error(L),
>0))
>
>1. This is not listed in the API changes section of the Lua5 manual.
Sorry about that.
>2. Why was this feature removed?
To simplify the core. Plus unlocked references can be easily implemented
using a weak table.
--lhf