[Issue 10088] New: std.range.chunks of string too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 15 09:50:45 PDT 2013


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

           Summary: std.range.chunks of string too
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-05-15 09:50:44 PDT ---
import std.stdio: writeln;
import std.range: chunks;
void main() {
    writeln(chunks("abcd", 2));
}


Output:

...\dmd2\windows\bin\..\..\src\phobos\std\range.d(6520): Error: template
instance Chunks!(string) does not match template declaration Chunks(Source) if
(isInputRange!(Source) && hasSlicing!(Source) && hasLength!(Source))
test.d(4): Error: template instance std.range.chunks!(string) error
instantiating


Expected:

["ab", "cd"]

-- 
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