[Issue 7177] $ should forward to length by default

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 29 12:30:24 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7177


Andrei Alexandrescu <andrei at metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at metalanguage.com


--- Comment #2 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-12-29 12:30:22 PST ---
I'm unclear what the best approach this is. One guiding element is that
https://github.com/D-Programming-Language/phobos/pull/365 is pure boilerplate,
which goes quite against the grain of D. It's also something that affects a lot
of ranges (essentially all that define a length).

The way I see it, we should automate things such that 1-dimensional ranges that
have a notion of "length" should define length (and opDollar should
automatically work for them), and multi-dimensional ranges with more refined
needs would define opDollar and also length.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list