Summary: std.range.take!string: "Nonsensical finite range with
                    slicing but no length"
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Michel Fortin <> 2010-06-19 
08:39:44 EDT ---
This code triggers a static assert called "Nonsensical finite range with
slicing but no length" in std.range.take!string:

    string str = "abcdef";
    string result = str.take(3);
    assert(array(result) == "abc");

It probably has something to do with strings which have no length defined to so
they work with code units instead of code points.

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

Reply via email to