Extending "scope"

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Apr 6 06:05:14 PDT 2008


"Bruce Adams" <tortoise_74 at yeah.who.co.uk> wrote in message 
news:op.t86qykboxikks4 at starquake.cybernetics...
> On Sun, 06 Apr 2008 09:36:15 +0100, Brian White <bcwhite at pobox.com> wrote:
>
>> I wrote something about "GC vs delete", but after thinking about it some 
>> more, how about this...
>>
>> There seems to be a fundamental conflict between RAII and the garbage 
>> collector.  You can assign a new object to a "scope" variable to cause 
>> it to get destructed without waiting for the GC, but what about objects 
>> within that?  For example:
>>
> You want a transitive delete. :)

Maybe it should be a paintable delete :P 





More information about the Digitalmars-d mailing list