[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "local" and stack
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 21 Sep 2013 17:21:09 -0300
> 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.