On Sun, Aug 25, 2002 at 11:16:35AM -0400, Tanton Gibbs wrote:
> > In this case, it is quite likely that many programs will get that flag
> > set. In which case, we'll need to be doing a DOD run at the end of most
> > blocks
>
> I would hope not. The only things which will set this flag are those items
> needing deterministic destruction, not all
> items with a destructor. It may be that for some languages these are they
> same set of objects, but for others those requiring determininstic
> destruction will be a small subset of those that have destructors and won't
> appear frequently in programs. we'll just have to wait and see if Perl6
> makes this distinction to see if this choice is well founded or not.
Well, if understood you correctly, then a single execution of
my $fh = IO::File->new(...)
anywhere in the program or its libraries would trigger this slow behaviour
for the rest of the program. I'd have thought that the above, or its Perl6
moral equivalent, is a fairly common idiom.
--
"But Sidley Park is already a picture, and a most amiable picture too.
The slopes are green and gentle. The trees are companionably grouped at
intervals that show them to advantage. The rill is a serpentine ribbon
unwound from the lake peaceably contained by meadows on which the right
amount of sheep are tastefully arranged." Lady Croom - Arcadia