Allocation failures
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 16 09:35:02 PST 2016
On Tuesday, 16 February 2016 at 17:15:17 UTC, JardÃk wrote:
> 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.
You can use exceptions without the GC and D offers a lot of other
things too.
> 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?
No, not generally.
> Can I even catch that Error?
Yes.
More information about the Digitalmars-d
mailing list