Loop iterator - example.txt
Derek Parnell
derek at psych.ward
Fri Apr 28 15:16:46 PDT 2006
On Sat, 29 Apr 2006 06:31:07 +1000, Rick C. Hodgin
<Rick_member at pathlink.com> wrote:
> Here's an idea:
>
> There should be a way in D to allow the reconsideration of a for..loop
> test
> clause without executing the increment clause.
>
...
>
> 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.
Yes! I use this construct daily with the Progress 4GL our company employs.
It elegantly implements a common idiom without a whole lot of twisting and
obscurity.
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d
mailing list