www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15753] New: clear method for AA not work


          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 puremagic.com
          Reporter: yosikawa 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" ];

main.d(3): Error: no property 'clear' for type 'string[string]'

Mar 04 2016