DIP23 draft: Fixing properties redux

FG home at fgda.pl
Sun Feb 3 05:47:55 PST 2013


On 2013-02-03 14:33, kenji hara wrote:
> Two arguments @property function would be declared only in module level,
> and just be called with UFCS.
> I think that functions annotated with @property must not have default
> parameters. As you show, it would introduce not little ambiguity.

With such constraints two argument property functions are fine, as long as
it is their second argument that is most significant in the assignment.
The DIP's 42.fun = 43 is the ideal counter-example of that. :)



More information about the Digitalmars-d mailing list