[Issue 5115] std.typecons.scoped problems

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 21 00:58:32 PST 2010


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



--- Comment #7 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2010-12-21 00:56:37 PST ---
(In reply to comment #6)
> You are probably right. Then why isn't this a compile error?
> 
> Foo f1 = scoped!Foo();

Because Scoped!Foo has an 'alias this' to the underlying Foo, which is
necessary for it to behave like a Foo.

-- 
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