Summary: Provide an intutive way to clear all entries in
                    Associative Array
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Puneet Goel <> 2012-07-09 06:22:08 PDT 
Deleting all the entries from an associative array is not intuitive. This has
been discussed at the D forum here:$2d48$

I suggest the following syntax should work

int[string] aa;
aa["foo"] = 1;
aa = []; // clear all array entries

At this point only this works. I think this is not very intuitive.

int[string] aa;
int[string] empty;

aa["foo"] = 1;
aa = empty;

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

Reply via email to