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

           Summary: iota should generate char intervals too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-02-03 18:05:18 PST ---
Spinoff of Issue 8920


import std.range: iota;
void main() {
    foreach (i; iota('a', 'f')) {}
}


DMD 2.062alpha gives:

temp.d(3): Error: template std.range.iota does not match any function template
declaration. Candidates are:
...\dmd2\src\phobos\std\range.d(5107):        std.range.iota(B, E, S)(B begin,
E end, S step) if ((isIntegral!(CommonType!(B, E)) || isPointer!(CommonType!(B,
E))) && isIntegral!(S))
...\dmd2\src\phobos\std\range.d(5192):        std.range.iota(B, E)(B begin, E
end) if (isFloatingPoint!(CommonType!(B, E)))
...\dmd2\src\phobos\std\range.d(5199):        std.range.iota(B, E)(B begin, E
end) if (isIntegral!(CommonType!(B, E)) || isPointer!(CommonType!(B, E)))
...\dmd2\src\phobos\std\range.d(5260):        std.range.iota(E)(E end)
...\dmd2\src\phobos\std\range.d(5267):        std.range.iota(B, E, S)(B begin,
E end, S step) if (isFloatingPoint!(CommonType!(B, E, S)))
temp.d(3):        ... (1 more, -v to show) ...
...\dmd2\src\phobos\std\range.d(5107): Error: template std.range.iota cannot
deduce template function from argument types !()(char,char)

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

Reply via email to