Re: [GD-Windows] Array foreach in scripting languages
Brought to you by:
vexxed72
From: Alen L. <ale...@cr...> - 2006-08-14 20:45:47
|
> The reason I'd like to have this work is that it is a > recurring pattern in lots of code I see (iterating a > list and deleting/inserting entries). In my experience, rather than trying to get the "modification of the list while walking it" right, it is much easier to instead just change the algorithm slightly to work by rewriting the input list into an output list. Simple and fool-proof. And for a scripting language, it should be a very useable solution. Cheers, Alen |