Loop iterator - example.txt

Sean Kelly sean at f4.ca
Sat Apr 29 10:33:20 PDT 2006


Rick C. Hodgin wrote:
> 
> I propose the name "retry" for the "retest without increment-clause" command, to
> be used in a manner similar syntax-wise to the way "break" is used today.
> "Retry" would simply bypass the increment-clause and proceed straight to the
> conditional-clause code section, thereby allowing subsequent passes through the
> for loop without the requisite and occasionally unnecessary auto-incrementation.

I like it.  It would be particularly nice if this were made to work with 
foreach as well, since there's currently no way to avoid progress for 
each iteration.


Sean



More information about the Digitalmars-d mailing list