[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua strictlessness
- From: Leo Razoumov <slonik.az@...>
- Date: Fri, 23 Aug 2013 05:40:00 -0400
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--