[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 _ENV garbage collection question
- From: Jerome Vuarand <jerome.vuarand@...>
- Date: Mon, 27 Jun 2011 11:29:48 +0200
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.