Allocation failures
cym13 via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 16 18:23:34 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. 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?
Such errors are static errors, they aren't allocated on the
stack, a 128 bytes buffer is shared accross threads to keep them.
More information about the Digitalmars-d
mailing list