lua-users home
lua-l archive

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


>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