Bug 8116 – new Foo().bar() should work

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-18T16:37:00Z
Last change time
2012-12-08T15:10:55Z
Assigned to
nobody
Creator
wfunction

Comments

Comment #0 by wfunction — 2012-05-18T16:37:09Z
It works in C#, and it's kinda handy for it to work.
Comment #1 by bearophile_hugs — 2012-05-20T05:17:48Z
I think something like (new Foo()).bar() works in D. If you want to change this, you need to change the operator precedence.
Comment #2 by andrej.mitrovich — 2012-12-08T15:10:55Z
*** This issue has been marked as a duplicate of issue 8635 ***