[Issue 9704] Destructor not called on function calls if postblit throws
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 12 14:17:16 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9704
--- Comment #5 from Andrei Alexandrescu <andrei at erdani.com> 2013-07-12 14:17:12 PDT ---
Pasting the additional example here for reference:
import std.stdio;
struct S1 {
this(int) { writeln("constructed"); }
~this() { writeln("destroyed"); }
}
struct S2 { this(int) { throw new Exception("a"); } }
void fun(S1, S2, S1) {}
void main()
{
fun(S1(2), S2(2), S1(2));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the issue.
More information about the D.gnu
mailing list