Removing items from an Array
Andrea Fontana
advmail at katamail.com
Fri Feb 17 03:10:10 PST 2012
Usually in other languages iterators are safe.
Il giorno ven, 17/02/2012 alle 11.35 +0100, Mars ha scritto:
> 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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120217/911c5cce/attachment.html>
More information about the Digitalmars-d-learn
mailing list