digitalmars.D.bugs - [Issue 3091] New: "auto x = new shared foo" does not compile
- d-bugmail puremagic.com Jun 23 2009
- d-bugmail puremagic.com Oct 28 2009
- d-bugmail puremagic.com Oct 28 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 puremagic.com ReportedBy: jason.james.house 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: -------
Jun 23 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Sobirari Muhomori <dfj1esp02 sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor --- Comment #1 from Sobirari Muhomori <dfj1esp02 sneakemail.com> 2009-10-28 10:02:46 PDT --- Seems like an RFE. Try to compile this: --- class A{} int main() { const a = new const A(); const a = new immutable A(); return 0; } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 28 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3091 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla digitalmars.com Severity|minor |enhancement -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 28 2009









d-bugmail puremagic.com 