@property - take it behind the woodshed and shoot it?

Nicolas Sicard dransic at gmail.com
Sat Jan 26 07:06:29 PST 2013


On Saturday, 26 January 2013 at 13:21:37 UTC, Jacob Carlborg 
wrote:
>
> It's always possible to avoid keywords in favor of syntax. 
> Example:
>
> Declaring a getter:
>
> int foo {}
>
> Just as a regular function declaration but without the 
> parentheses.
>
> Declaring a setter:
>
> void foo= (int value) {}
>
> Append an equal sign to the function name.

How would you declare a template property? The getter would be 
ambiguous with a regular function declaration, wouldn't it?


More information about the Digitalmars-d mailing list