[clue-tech] increment weather
David L. Anselmi
anselmi at anselmi.us
Tue Feb 23 19:38:55 MST 2010
Jed S. Baer wrote:
> Well, I kinda think the whole point of the while loop is that the loop
> condition variable _is_ modified inside the loop.
Sometimes, but not always. Sometimes the condition is an expression that isn't affected by anything
in the loop. Like:
while read foo ...
read returns false at EOF, which probably doesn't get set inside the loop.
> Well, I suppose I care about correctness some. As in I wouldn't use:
>
> for (( i = 0; i< 10; i++ ))
>
> if I were going to be messing with i in the loop.
Exactly.
Dave
More information about the clue-tech
mailing list