|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.bugs - [Issue 3091] New: "auto x = new shared foo" does not compile
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
|