On 1/23/13 1:18 PM, Johannes Pfau wrote:
Please do not forget the main reason for @property: Returning a delegate from a function can become ambiguous without it:int a(){return 42;} void b() {return&a;} auto var = b; //OK auto var2 = b(); //is var2 == b or == 42? It might be an extreme corner case, but it's inconsistent behavior and confusing.
Agreed. I think we should require @property only for those cases, and not any others.
Andrei
