digitalmars.D.bugs - [Issue 8039] New: `scoped` doesn't call any elaborate destructors for struct fields
- d-bugmail puremagic.com (38/38) May 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8039
- d-bugmail puremagic.com (6/6) May 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8039
- d-bugmail puremagic.com (15/15) May 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8039
- d-bugmail puremagic.com (9/9) May 09 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8039
http://d.puremagic.com/issues/show_bug.cgi?id=8039 Summary: `scoped` doesn't call any elaborate destructors for struct fields Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: verylonglogin.reg gmail.com --- Comment #0 from Denis <verylonglogin.reg gmail.com> 2012-05-04 21:20:21 MSD --- `dels` is always zero here: --- unittest { static int dels; static struct S { ~this(){ ++dels; } } static struct S2 { S[3] s; } class A { S s; } dels = 0; { scoped!A(); } assert(dels == 1); class B { S[2] s; } dels = 0; { scoped!B(); } assert(dels == 2); class C { S2[2] s; } dels = 0; { scoped!C(); } assert(dels == 6); class D: A { S2[2] s; } dels = 0; { scoped!D(); } assert(dels == 1+6); } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 04 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8039 --- Comment #1 from Denis <verylonglogin.reg gmail.com> 2012-05-04 23:24:11 MSD --- https://github.com/D-Programming-Language/phobos/pull/569 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 04 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8039 --- Comment #2 from github-bugzilla puremagic.com 2012-05-07 09:37:42 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/273eb2122665312011b8bb9bd21e9c85aba140c5 Fix Issue 8039 - `scoped` doesn't call any elaborate destructors for struct fields Phobos isn't a place for runtime stuff like `destroy`. And Phobos developers aren't people who should write/check such stuff. https://github.com/D-Programming-Language/phobos/commit/cc636bea73841cfe0250a143cfba3400991cb2bd Merge pull request #569 from denis-sh/scoped-bug8039-fix Fix Issue 8039 - `scoped` doesn't call any elaborate destructors for struct fields -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8039 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 09 2012