in reply to Re: Trying to DESTROY() an object
in thread SOLVED: Trying to DESTROY() a (closure-wrapped) object
The problem you are hitting is that there is no guaranteed time for garbage collection. Therefore, garbage collection hasn't happen on the very short time scale for your test.
You must be thinking of some language other than Perl v5. You describe a weakness of many languages. But Perl v5 doesn't have that problem.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trying to DESTROY() an object (!gc)
by kennethk (Abbot) on Dec 09, 2015 at 16:04 UTC |