On Friday, 25 January 2013 at 05:35:19 UTC, kenji hara wrote:
module abc; @property int foo(int n);void main() { foo = 1; // top-level property setter 1.foo; // property getter with UFCS }We cannot distinguish the two usages without adding any new features.Kenji Hara
"1.foo" must be compile error here. Makes as much sense as
int a;
void main() {
1.a;
}
Property must behave exactly like data or it is not a property.
