@property - take it behind the woodshed and shoot it?
Timon Gehr
timon.gehr at gmx.ch
Fri Jan 25 14:02:05 PST 2013
On 01/25/2013 10:44 PM, Zach the Mystic wrote:
> Here are my two cents:
>
> First, about optional parentheses:
>
> Optional parentheses = ambiguity.
> ...
No, you can definitely have ambiguity without optional parentheses.
Unless that is supposed to be a destructive update. Is your statement
ambiguous?
> int foo() { return 4; }
> auto x = foo; // gives 4 or gives function foo?
>
> It seems to me any ambiguity should be an error. However… it only
> matters when the type system can't provide the missing detail, as above.
> ...
That is not ambiguous.
More information about the Digitalmars-d
mailing list