[Issue 2255] AA.remove() doesn't remove AA element when iterating using foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 24 22:57:44 PDT 2011


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


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

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


--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-05-24 22:53:28 PDT ---
As I understand it, it is unsafe to remove members of an AA while iterating
over it - and that includes unsafe in the memory sense. Perhaps something needs
to be done so that it doesn't risk memory issues, but I wouldn't expect it to
ever become something that would be expected to work (just not cause problems
with memory). So, adding it to the docs would probably be a good idea.

-- 
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