property syntax strawman

Jason House jason.james.house at gmail.com
Sun Aug 2 06:22:54 PDT 2009


Walter Bright Wrote:

> Having optional parentheses does lead to unresolvable ambiguities. How 
> much of a problem that really is is debatable, but let's assume it 
> should be resolved. To resolve it, a property must be distinguishable 
> from a regular function.


I have not been following the property discussion. As far as syntactic ambiguities, is there anything else besides returning a delegate? If proprties are added to D, will a class designer decide when parenthesis should be added/omitted for zero argument functions?



More information about the Digitalmars-d mailing list