in reply to Re: Garbage-collecting with closures
in thread Garbage-collecting with closures
I tried
for quite a long time and saw usage of constant memory.my $foo; sub leaky { my $closure = sub { $foo++ }; } for (;;) {leaky}
Courage, the Cowardly Dog
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Garbage-collecting with closures
by perrin (Chancellor) on Feb 20, 2003 at 15:02 UTC | |
by Courage (Parson) on Feb 20, 2003 at 19:35 UTC |