From: mental@... Date: 2005-12-10T08:11:05+09:00 Subject: Re: next, [redo], break? Quoting Jacob Fugal : > Like Gabriele said in the other thread, they seem to already... Well, yes and no. You didn't try anything like my example (which does fail), but on the other hand it seems I did subtly misunderstand the behavior of these keywords (particularly retry). The example I gave can be fixed by adding a begin...ensure, more or less as I had been advising others (though I wasn't always recommending it in the right places). With the ensure, it still behaves differently than Array#each, but consistently with other iterators which have persistent state (e.g. IO#each). Along those lines, my comment in the earlier thread about IO#each not bothering to implement retry was also incorrect; its behavior makes sense once you understand what retry really does. Thank you for putting together the test harness, that helped me get myself straight. -mental