Partial modification of DIP23 to allow module level property

Jonathan M Davis jmdavisProg at gmx.com
Sat Feb 9 04:12:05 PST 2013


On Saturday, February 09, 2013 13:01:58 Robert wrote:
> > arrays are by far the most common type of range, I think that it's
> > just asking
> > for trouble to allow their front or back to be used with parens.
> 
> Except you ebrace the idea that front is a function (property or not)
> and make parens work in all cases. Why not do it the other way round,
> front has to be a function property or not.
> 
> Seems to work far better, it is a simple rule. No performance penalty as
> trivial set/get can easily be lined in, ...

It fails miserably when the element type of a range is callable. That's the 
main reason that @property was introduced in the first place.

- Jonathan M Davis


More information about the Digitalmars-d mailing list