digitalmars.D.bugs - [Issue 6128] New: Struct destructor isn't run when used in with statement
- d-bugmail puremagic.com (38/38) Jun 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6128
- d-bugmail puremagic.com (16/16) Jul 21 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6128
- d-bugmail puremagic.com (10/10) Apr 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6128
- d-bugmail puremagic.com (11/11) Feb 08 2013 http://d.puremagic.com/issues/show_bug.cgi?id=6128
http://d.puremagic.com/issues/show_bug.cgi?id=6128 Summary: Struct destructor isn't run when used in with statement Product: D Version: D2 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: simen.endsjo pandavre.com PDT --- This is using dmd 2.053 on win7 32bit import std.stdio; void main() { struct S { this(bool a) { writeln(" this"); } ~this() { writeln(" ~this"); } } writeln("scoped:"); { auto s = S(true); } writeln("with:"); with(S(true)) { } } Output: scoped: this ~this with: this -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 08 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6128 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 12:49:45 PDT --- This seems to be fixed in 2.054: scoped: this ~this with: this ~this -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 21 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6128 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com PDT --- Runs fine on 2.059 too. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 24 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6128 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WORKSFORME 14:05:10 PST --- Works in 2.061. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 08 2013