[Issue 5115] std.typecons.scoped problems
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 21 00:24:22 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5115
--- Comment #3 from bearophile_hugs at eml.cc 2010-12-21 00:22:23 PST ---
(In reply to comment #2)
> > void main() {
> > Foo f1 = scoped!Foo(); // doesn't call dtor after the scope
> > auto f2 = scoped!Foo(); // calls dtor after the scope
> > }
>
> This example (and the first half of this bug report) appears to be a duplicate
> of bug http://d.puremagic.com/issues/show_bug.cgi?id=3516
But both f1 and f2 gets assigned. I don't fully understand issue 3516 so I
can't tell.
--
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