lua-users home
lua-l archive

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





On 23 September 2013 23:06, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> Would you care to elaborate on this, as I am having some difficulty
> understanding what you mean.
> Are you referring to internal Lua code or a user's Lua code?
> If internal, how can Lua not know of a table which needs collecting at some
> point in the future?

Now I am having problems undestanding what you mean. What would be
"internal Lua code"?


Hehe
I was trying to differentiate between a Lua script and Lua's C code, for example the garbage collector.
 
What I meant was that, typically, this table associating light userdata
with Lua objects is in the registry, and the lookup is done by C code.

-- Roberto


This makes perfect sense to me now that you mention the registry.
Thanks

--Liam