Hi list
I keep getting hung up on deciding whether to use for or while for
loops.
Is one any better than other for straight forward loops, ie where you
don't need next or last.
Cheers
Angie
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Nov 17, angie ahl said:
>I keep getting hung up on deciding whether to use for or while for
>loops.
Well, it usually depends on how the code "reads". I use 'while' for loops
based on a condition that will change in some execution of the block.
while () {
# eventually, will return unde
On Monday, Nov 17, 2003, at 09:04 US/Pacific, Jeff 'japhy' Pinyan wrote:
[..]
which only reads ONE line at a time, whereas
for () { ... }
reads ALL the lines of the file at once, into a list.
really good point there.
but wouldn't the position been just a tad stronger
had you noted that the abo