[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 07:08:46 UTC 2019


--- Comment #4 from Eyal <eyal at weka.io> ---
Just to clarify on my last point, if "auto sneakyThrow" is changed to "void
sneakyThrow" -- it DOES run the dtor! Because it is no longer inferred to be

This is a really unpredictable semantics for a simple program, doesn't feel at
all reasonable in a language that desires safety.


More information about the Digitalmars-d-bugs mailing list