NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Timely, well-ordered destructors (Score:1)
Will Parrot support timely, well-ordered destructors? Perl's reference counting provides this but such appears to be impossible with "modern garbage collection".
"Well-ordered" means that if $x references (depends on) $y (and there is no circular dependence), then $x's destructor will fire before $y's.
"Timely" means that destructors fire quite quickly so that they can free related resources for reuse.
For example, an easy and powerful technique is to construct a "lock" object that automatically releases the lock when it is destroyed.
Reply to This