Loop iterator - example.txt

Sean Kelly sean at f4.ca
Sun Apr 30 12:18:11 PDT 2006


Bruno Medeiros wrote:
> 
> I was thinking of an example which used continues and retries in the 
> same for, as yours can be cleanly rewritten as the example in my later 
> post.
> Anyway, Derek's example serves as a good example of the keyword's usage, 
> but for "foreach", for "for" I'm still finding it a bit odd.

I think it's more useful for "foreach" because there's no way to avoid 
progressing with each iteration.  However, goto still works here as in 
Walter's example.  "retry" is handy, but it's more a convenience than 
anything.


Sean



More information about the Digitalmars-d mailing list