lua-users home
lua-l archive

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


On Fri, Aug 23, 2013 at 5:33 AM, Rafis DoctorInfo
<rafisganeyev@gmail.com> wrote:
> Omg, shadows? It is even worse: does what means if I shadow redefine table,
> it will be never garbage collected?
> local a = {} -- this table will be never collected?
> local a = nil -- shadow the previous definition
>
>

No, garbage collector will collect the table when the first 'local a'
goes out of scope. No surprises here.

--Leo--