Prevention of UFCS hijacking
H. S. Teoh
hsteoh at quickfur.ath.cx
Wed Aug 28 07:46:57 PDT 2013
On Wed, Aug 28, 2013 at 08:41:39AM +0200, Jacob Carlborg wrote:
> 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
[...]
+1, I agree with all of the above.
T
--
Старый друг лучше новых двух.
More information about the Digitalmars-d
mailing list