lua-users home
lua-l archive

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


2011/6/27 steve donovan <steve.j.donovan@gmail.com>:
> On Mon, Jun 27, 2011 at 11:08 AM, Gaspard Bucher <gaspard@teti.ch> wrote:
>> collectgarbage() ---- does not collect old "foo". Why ? Where is it stored ?
>> print('end') -- the garbage collection after 'end' removes old "foo".
>
> It's still there, as a global of the original environment.

But the original environment is unreachable (except by the gc_mt.__gc
function itself), and it should be collected.