DIP26: properties defined
Dmitry Olshansky
dmitry.olsh at gmail.com
Fri Feb 8 23:19:40 PST 2013
09-Feb-2013 03:53, Robert пишет:
> Ok. Here finally it is:
>
> http://wiki.dlang.org/DIP26
>
>
>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];
}
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list