<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.1.92">
</HEAD>
<BODY>
Usually in other languages iterators are safe.<BR>
<BR>
Il giorno ven, 17/02/2012 alle 11.35 +0100, Mars ha scritto:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Friday, 17 February 2012 at 10:13:00 UTC, Jonathan M Davis
wrote:
> I don't believe that removing elements from an AA while
> iterating over it is safe.
>
> - Jonathan M Davis
Well, no. But from my experience it's okay from bottom to top...
at least in other languages.
What would be the alternative? Maybe build a new array while
iterating, and set it after the loop?
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>