http://d.puremagic.com/issues/show_bug.cgi?id=3285
Summary: Struct's destructor not called Product: D Version: 2.032 Platform: All OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: yaocheng...@gmail.com import std.stdio; struct S { ~this() { writefln("die!"); } void fun(){} } S fun() { return S(); } int main(char[][] args) { fun().fun(); ... return 0; } Struct's destructor not called . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------