Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |
           Platform|x86_64                      |All
         OS/Version|Linux                       |All
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan M Davis <> 2011-11-21 22:57:17 
PST ---
Technically, this is an enhancement request, not a bug - though it's certainly
a very desirable enhancement request. assumeSorted returns a SortedRange struct
which wraps the range which was passed to it. SortedRange does not define
opDollar, and at present, IIRC, opDollar hasn't been working correctly. So,
it's not possible for SortedRange to define opDollar, and there's no way that
your example is going to work. However, it looks like there was a commit made
to dmd about an hour ago which relates to opDollar (
). So, it may now be possible to implement this.

But the short answer for why this doesn't work is that $ doesn't yet work for
anything other than built-in arrays, and assumeSorted doesn't return an array,
even if you pass it one (and it would defeat the purpose of assumeSort if it
did return an array).

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to