[Issue 704] `class` destructor is called even if constructor throws

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 18 16:32:11 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=704

--- Comment #12 from anonymous4 <dfj1esp02 at sneakemail.com> ---
Isn't it only true for C++ that destructor can't be called on an object that
wasn't constructed? In C++ destructor can't be called because there's no
default initialization before constructor, but in D I think destructor can be
called because it won't run on garbage.

--


More information about the Digitalmars-d-bugs mailing list