[Issue 6364] Static struct's destructor called on exit of function
http://d.puremagic.com/issues/show_bug.cgi?id=6364 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED CC||bugzi...@digitalmars.com Resolution||FIXED --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2012-01-08 15:03:03 PST --- https://github.com/D-Programming-Language/dmd/commit/04e49317d79269c2ec30217562b97eaa6f9699a7 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6364] Static struct's destructor called on exit of function
http://d.puremagic.com/issues/show_bug.cgi?id=6364 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||patch, wrong-code Platform|Other |All OS/Version|Windows |All --- Comment #2 from Kenji Hara k.hara...@gmail.com 2012-01-06 08:27:30 PST --- https://github.com/D-Programming-Language/dmd/pull/612 NOTE: This patch does not fix dtor is never called on global variable problem (it is filed as bug 6437). So after the patch applied, foo's dtor would never be called. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6364] Static struct's destructor called on exit of function
http://d.puremagic.com/issues/show_bug.cgi?id=6364 --- Comment #3 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-01-06 09:24:52 PST --- (In reply to comment #2) https://github.com/D-Programming-Language/dmd/pull/612 NOTE: This patch does not fix dtor is never called on global variable problem (it is filed as bug 6437). So after the patch applied, foo's dtor would never be called. Yeah they're two different bugs, I guess. Thanks for fixing this one though! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6364] Static struct's destructor called on exit of function
http://d.puremagic.com/issues/show_bug.cgi?id=6364 --- Comment #1 from Andrej Mitrovic andrej.mitrov...@gmail.com 2012-01-04 07:07:56 PST --- (In reply to comment #0) To clarify: It should print 1 both times. I think the dtor should run on app exit, since it's a static variable. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---