Precedence of 'new' vs '.'

Robert Fraser fraserofthenight at gmail.com
Tue May 5 16:47:05 PDT 2009


BCS wrote:
> 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++
> 
> 

me too... Bugzilla, anyone?



More information about the Digitalmars-d mailing list