DIP26: properties defined

Robert jfanatiker at gmx.at
Sat Feb 9 03:32:24 PST 2013


Has anyone actually read the DIP?

Simply don't call it property.
On Sat, 2013-02-09 at 08:45 +0100, FG wrote:
> 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