[Issue 8182] with a lazy struct parameter, the struct's destructor is called on the generated delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 21 20:21:47 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8182



--- Comment #2 from github-bugzilla at puremagic.com 2012-06-21 20:24:10 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7083076a06da8b43c3b515ac7ef0bd8330287f5d
add lazy to the "don't destruct" list

Lazy parameters are actually delegates. Calling the struct destructor on
them was nonsense.

This fixes issue 8182.

https://github.com/D-Programming-Language/dmd/commit/009ce61ff416f1437e60c37d572c47878d694099
add a test for issue 8182

https://github.com/D-Programming-Language/dmd/commit/d313a470d78efd1995ef27dd37f64a66128bbc4c
Merge pull request #995 from NilsBossung/bugzilla8182

fix Issue 8182 - with a lazy struct parameter, the struct's destructor is
called on the generated delegate

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list