[Issue 15753] New: clear method for AA not work
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Mar  4 05:11:06 PST 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15753
          Issue ID: 15753
           Summary: clear method for AA not work
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: yosikawa at altalk.com
"associative array" page of the language reference clearly denotes:
All keys can be removed by using the method clear.
But following code won't compile.
void main() {
    string[string] hash = [ "k":"v" ];
    hash.clear();
}
main.d(3): Error: no property 'clear' for type 'string[string]'
--
    
    
More information about the Digitalmars-d-bugs
mailing list