http://d.puremagic.com/issues/show_bug.cgi?id=8363


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebbl...@gmail.com
            Summary|Provide an intutive way to  |Empty array literal does
                   |clear all entries in        |not implicitly convert to
                   |Associative Array           |associative array


--- Comment #3 from yebblies <yebbl...@gmail.com> 2012-07-10 01:54:12 EST ---
(In reply to comment #0)
> aa = []; // clear all array entries
> 

This should probably work.

> 
> At this point only this works. I think this is not very intuitive.
> 
> int[string] aa;
> int[string] empty;
> 
> aa["foo"] = 1;
> aa = empty;

try

aa = null;

But be careful, don't forget AAs are reference types.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to