Prevention of UFCS hijacking
Jacob Carlborg
doob at me.com
Tue Aug 27 23:41:39 PDT 2013
On 2013-08-27 20:40, Maxim Fomin wrote:
> Let's start from basics:
>
> writeln = 42;
>
> and this is also by design.
I see no reasons for why this should be allowed. I say:
* Getters marked with @property: call without parentheses
* Getters not marked with @property: call with or without parentheses
* Setters marked with @property: require assignment syntax
* Setters not marked with @property: disallow assignment syntax
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list