Precedence of 'new' vs '.'

Frank Benoit keinfarbton at googlemail.com
Tue May 5 15:39:12 PDT 2009


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?



More information about the Digitalmars-d mailing list