From: Patrick Gundlach Date: 2005-12-08T17:07:35+09:00 Subject: Re: increasing counter whithin loop? >> That (last part of the sentence) is exactly what confused me. >> Nobody else thinks that this persistance would be useful? > > Well, let's assume we've got persistence. What would you expect > each of the following to do? > > for i in 1..3 > i = 3 > end infinite loop. > > for i in [ 1, 2, 3 ] > i = 3 > end infinite loop. > > for s in [ "a", "b", "c" ] > s = "c" > end infinite loop. > > for s in $stdin > s = "hello" > end infinite loop. Same as do ... while true But perhaps I don't get your question. Patrick (please no cc: to me)