Summary: retro() of splitter() too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from 2012-05-30 04:59:23 PDT ---
This is an operation I'd like to do:

import std.range, std.algorithm;
void main() {
    auto p = std.array.splitter("this is a message").retro();

DMD 2.060alpha gives:

test.d(3): Error: template std.range.retro does not match any function template
...\dmd2\src\phobos\std\range.d(1292): Error: template std.range.retro(Range)
if (isBidirectionalRange!(Unqual!(Range))) cannot deduce template function from
argument types !()(Result)

I think a splitter of a narrow string can be a BidirectionalRange.

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

Reply via email to