Is this right? Does break act funny with nested loops or should it work
just like
I'd think, just break out of the current loop (nested or not) and that's it?
Thanks for any info!
Brian
--
Brian Matchick
Pencom Systems Administration
matc...@pencom.com
And what is good, Phædrus,
And what is not good-
Need we ask anyone to tell us these things?
Robert M. Pirsig,
"Zen and the Art of Motorcycle Maintenance"
The simplest example I could think of works:
while 1 {
puts hello
for {} 1 {} {
puts there
break
}
puts again
break
}
If "break" forced a continue of the while loop, you'd get "hello there
hello again", but I get "hello there again", which is what I expected.
--
John Haxby
These are my opinions, not my employer's.