Optional function invocation parentheses

monarch_dodra monarchdodra at gmail.com
Thu Sep 20 10:21:35 PDT 2012


On Thursday, 20 September 2012 at 17:13:09 UTC, Jesse Phillips 
wrote:
> 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?

Oops, I meant:
-property      enforce property syntax


More information about the Digitalmars-d-learn mailing list