An idea to avoid a narrow class of bugs

Christophe Travert travert at phare.normalesup.org
Mon Jun 25 06:27:25 PDT 2012


Alex Rønne Petersen , dans le message (digitalmars.D:170616), a écrit :
>>
>> To me, it is a GC implementation issue. You should be able to allocate
>> in destructors.
> 
> Yes, I don't understand why on earth this limitation is in place. There 
> is no (good) technical reason it should be there.

Allowing safe unwinding of the stack when throwing exceptions is not a 
'good' reason ?

Well, a destructor should rather be no_throw, and should be able to 
call no_throw (GC) functions.

-- 
Christophe


More information about the Digitalmars-d mailing list