[Issue 19602] Under some circumstances: throwing Error subclasses unwinds without invoking dtors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 17 09:10:05 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19602
--- Comment #13 from Jacob Carlborg <doob at me.com> ---
(In reply to Walter Bright from comment #11)
> Unittest failures at the top level do not call the assert fail handler, they
> call _d_unittestp(), which then calls the assert error handler. This means
> you can supply your own _d_unittestp() replacement.
Ah, I didn't know about that. Then `_d_unittestp` can be implemented to throw
an exception instead of an error.
--
More information about the Digitalmars-d-bugs
mailing list