www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13885] New: aa.byKey and aa.byValue don't have a length

https://issues.dlang.org/show_bug.cgi?id=13885

          Issue ID: 13885
           Summary: aa.byKey and aa.byValue don't have a length
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main() {
    int[int] aa;
    size_t len1 = aa.byKey.length;
    size_t len2 = aa.byValue.length;
}


Dmd 2.067alpha gives:

temp.d(3,27): Error: no property 'length' for type 'Result'
temp.d(4,29): Error: no property 'length' for type 'Result'

--
Dec 21 2014