[Issue 704] destructors are called even if the constructor throws an exception
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 15 18:58:12 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=704
Andrei Alexandrescu <andrei at erdani.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrei at erdani.com
--- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> 2013-11-15 18:58:06 PST ---
On the other hand we don't throw if a struct's ctor throws. So this is an
inconsistency.I think it's fair in D to consider a throwing constructor as
abandoning all construction of the object.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list