lua-users home
lua-l archive

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


There is no luaL_getref because you don't need it!  You could define it as
an alias of lua_rawgeti if you like ("references" are stored in the provided
table under numeric keys.)

As Luiz pointed out, there are some macro's in lua.h (lua_ref, lua_getref
and lua_unref) for compatibility with Lua 4.  They simply use the lua
registry as the table to store references.

--
Wim