DIP26: properties defined

FG home at fgda.pl
Fri Feb 8 23:45:11 PST 2013


On 2013-02-09 08:19, Dmitry Olshansky wrote:
>> NoUFCS for properties
>
>> Properties protect the access to a field of an entity (class/struct/module),
>> so they actually have to be defined within the entity they belong to, just as
>> a field would.
>
> Rubbish.
>
> std.array:
>
> @property auto front(T)(T[] arr)
> {
>      return arr[0];
> }
>

Yeah, banning UFCS for properties is too farfetched.


More information about the Digitalmars-d mailing list