[Issue 10876] foreach and remove over associative array causes invalid data to appear

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 23 14:34:31 PDT 2013


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



--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-23 14:34:18 PDT ---
(In reply to comment #5)
> The bottomline is that modifying the container while you're iterating over it
> is a bad idea (unless the container was specifically designed to support it).
> It almost always doesn't do what you think it should do.

Btw, we should put this info up on dlang.org if it's not already there.

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