lua-users home
lua-l archive

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




On 7 January 2011 14:28, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> And while I'm at it, what's is the use case of luaL_ref and luaL_unref
> after all?

That is a good question. Since userdata got "environments" in 5.1
(called uservalues, in 5.2), the need for luaL_ref diminished a lot.

-- Roberto

Not so much that it is going to be removed I hope, how else would C code keep a reference to Lua data without generating its own id mechanism?

Lua