Uniform Function Call Syntax(UFCS) and @property

David Nadlinger see at klickverbot.at
Fri Mar 4 04:54:12 PST 2011


On 3/4/11 1:44 PM, Jim wrote:
> […]
> So, what do you think about this translation? Although it is the same type of transformation, but I wouldn't call this @property because it isn't a property _of_ something.

This isn't what @property is about, but describes uniform function call 
syntax. The @property annotation is just about being able to omit the 
parentheses on a parameterless function call and to pass in a single 
parameter via the equals sign.

David


More information about the Digitalmars-d mailing list