From: ts Date: 2004-11-11T22:57:08+09:00 Subject: Re: array.each restart when array is changed >>>>> "F" == Florian Gross writes: F> I wonder if this is by purpose or an accidental feature. From the "ruby user guide" ------------------------------------------------------------ With `retry', one can define an iterator which works the same as `while', but it's not practical due to slowness. ruby> def WHILE(cond) ruby| return if not cond ruby| yield ruby| retry ruby| end nil ruby> i=0; WHILE(i<3) { print i; i+=1 } 012nil ------------------------------------------------------------ Guy Decoux