http://qs1969.pair.com?node_id=309179


in reply to "for" surprise

I've got to agree with Corion, this is questionable style. I would suggest setting a different variable to mark where (or why or how) the loop was exited, if that's needed after the loop exits. Besides, to be fair to the iterator variable, its only job was to count through the loop, not to provide information after the loop is over.