Precedence of 'new' vs '.'

BCS ao at pathlink.com
Tue May 5 16:02:29 PDT 2009


Reply to Frank,

> In Java one can write:
> 
> new MyClass().run();
> 
> in D this does not compile, parenthesis are needed.
> 
> (new MyClass()).run();
> 
> But why is the D language designed like that?
> 

vote++





More information about the Digitalmars-d mailing list