Optional function invocation parentheses

Jesse Phillips Jessekphillips+D at gmail.com
Thu Sep 20 10:14:08 PDT 2012


On Thursday, 20 September 2012 at 13:57:54 UTC, monarch_dodra 
wrote:
> On Thursday, 20 September 2012 at 12:59:51 UTC, Will Rubin 
> wrote:
>> Thanks for the detailed reply. It's too early for me to have 
>> much of an opinion but I'll take your approach and use 
>> @Property without parens (as I would in C# for example) and 
>> stick with the empty parens for non-property functions as it's 
>> a bit clearer to see what's really going on at this right now.
>
> FYI, you can use the -d compile option to enforce the "proper" 
> usage.

What do you mean by this, -d allows deprecated features to be 
compiled in, wouldn't that be allowing "unproper" usage?


More information about the Digitalmars-d-learn mailing list