[Issue 3091] "auto x = new shared foo" does not compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 12 05:33:43 PST 2011


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



--- Comment #5 from Kenji Hara <k.hara.pg at gmail.com> 2011-12-12 05:33:41 PST ---
(In reply to comment #4)
> With that patch, when will "new shared foo()" be allowed? Is it semantically
> equivalent to "cast(shared) new foo()"?

"new shared foo()" is allowed, and it is semantically equivalent to "new
shared(foo)()", not cast.

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