[Issue 8363] Empty array literal does not implicitly convert to associative array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 9 10:45:48 PDT 2012


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #4 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-07-09 10:45:46 PDT ---
> aa.clear() should work.

I believe that that's the same as setting it to null. It doesn't actually
remove anything from the AA. It just makes that reference null. If you want to
actually remove all of the elements from the AA, you currently have to iterate
over them and call remove on each one.

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


More information about the Digitalmars-d-bugs mailing list