Allocation failures

Jardík via Digitalmars-d digitalmars-d at puremagic.com
Tue Feb 16 09:15:17 PST 2016


But if I couldn't use GC and do all allocations and deallocations 
manually, I wouldn't even be able to use exceptions and there 
would also no longer be much reason to write it in D. I did some 
searching and came into discussion and there found out that in 
case of an error thrown, D just forcibly unwinds the stack 
without running destructors or scope guards. Is that true? Can I 
even catch that Error?



More information about the Digitalmars-d mailing list