[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 11:42:50 UTC 2019


johanengelen at weka.io changed:

           What    |Removed                     |Added
                 CC|                            |johanengelen at weka.io

--- Comment #9 from johanengelen at weka.io ---
Spec-wise, https://dlang.org/spec/errors.html#the_d_error_handling_solution
should be changed to clearly state what is happening. Currently, it says that
throwing and catching Error is good for error handling but it very clearly
It's contradicting object.exception and object.error page's advice,
https://dlang.org/library/object/error.html, of never catching exceptions not
derived from Exception (i.e. Throwables and Errors).


More information about the Digitalmars-d-bugs mailing list