www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14910] New: Take!R does not offer length for char[]


          Issue ID: 14910
           Summary: Take!R does not offer length for char[]
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: schneider.cedric gmx.de

    char[] chars = ['h', 'e', 'l', 'l', 'o'];
    assert(chars.take(2).length == 2);

This unittest fails to compile, complaining that Take!char[] does not have a
length, despite Take!R claiming to offer a length property if the input range

Aug 12 2015