@property - take it behind the woodshed and shoot it?

Timon Gehr timon.gehr at gmx.ch
Mon Jan 28 08:31:33 PST 2013


On 01/28/2013 06:22 AM, Steven Schveighoffer wrote:
> ...
>
> I would be satisfied with Kenji's implementation.  As I understand it:
>
> @property on a getter would mean implicit calling of the function.
> @property on a setter would mean calling x = y as x(y).
> @property functions could not be called like normal functions.
> Parentheses are optional on normal no-arg functions when used as getters.
> Normal single arg or variadic functions are NOT ALLOWED to be used as
> setters.
> ...

This proposal unfortunately does not work too well because of UFCS.


More information about the Digitalmars-d mailing list