From: Truls Alexander Tangstad Date: 2001-04-21T13:41:23+09:00 Subject: [ruby-talk:13957] Bug? retry not working properly in 1.6.3 From the example in "Ruby User's Guide", section 9, "Iterators", there is an example of a while implemention. In Ruby 1.6.3 the code results in the following: ruby> def WHILE(cond) | return if not cond | yield | retry | end nil ruby> i=0; WHILE(i<3) { print i; i+=1 } 0 nil First off, i'm guessing the example is flawed, as 'i<3' is only evaluated once, so the WHILE should go into an infinite loop. The actual problem is that retry doesn't restart the loop. Is this a bug, or am I missing something here? - Truls Tangstad