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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jul 30 14:35:06 PDT 2008


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


shro8822 at vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from shro8822 at vandals.uidaho.edu  2008-07-30 16:35 -------
http://www.digitalmars.com/d/1.0/statement.html#ForeachStatement

"The aggregate must be loop invariant, meaning that elements to the aggregate
cannot be added or removed from it in the NoScopeNonEmptyStatement."


-- 



More information about the Digitalmars-d-bugs mailing list