[Issue 3091] New: "auto x = new shared foo" does not compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jun 23 20:46:22 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3091
Summary: "auto x = new shared foo" does not compile
Product: D
Version: 2.030
Platform: Other
OS/Version: Linux
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: jason.james.house at gmail.com
Created an attachment (id=402)
--> (http://d.puremagic.com/issues/attachment.cgi?id=402)
File demonstrating the issue
Attached is a simple test case that I think should compile. It seems that
shared foo must be replaced with shared(foo). It's certainly easier to type in
the way I'm hoping for. Things get a bit ridiculous when templates are
involved auto x = new shared(foo!(bar, baz))(alpha, beta); Anything that can
be done to reduce the parenthesis is nice.
--
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