lua-users home
lua-l archive

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

> So going out of scope, pops out the variable referring to the object
> on heap, and if object has no other reference, then it is queued for
> GC. Is that the right understanding ?

Not quite. Objects are only found have no referene in a GC cycle, not
when variables go out of scope. Lua does not use reference counting.