[Issue 704] destructors are called even if the constructor throws an exception
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 16 13:01:18 PST 2009
http://d.puremagic.com/issues/show_bug.cgi?id=704
------- Comment #4 from 2korden at gmail.com 2009-01-16 15:01 -------
I'm not sure whether it is a bug (unless specs specify other behavior).
Unlike C++, objects in D are fully constructed /before/ entering ctor and thus
I would expect the dtor to be called even if ctor throws.
--
More information about the Digitalmars-d-bugs
mailing list