At 4:22 PM +0100 8/25/02, Dave Mitchell wrote:
>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.

No. That's why we make it a counter. When a DOD run is made we recalc 
the number of deterministci destructions needed.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to