[Issue 19602] Under some circumstances: throwing Error subclasses unwinds without invoking dtors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 22 09:00:25 UTC 2019


Jacob Carlborg <doob at me.com> changed:

           What    |Removed                     |Added
                 CC|                            |doob at me.com

--- Comment #5 from Jacob Carlborg <doob at me.com> ---
(In reply to Mathias LANG from comment #2)

> There is still value in catching `Error` though: as a last resort mesure:
> catch, log & abort is one thing, and catching at the top of a thread/fiber
> to avoid the program termination is another.

For a unit test framework it's useful to catch AssertError to be able to
continue running other tests.


More information about the Digitalmars-d-bugs mailing list