From: Peter Ertl Date: 2006-03-25T01:33:50+09:00 Subject: Re: iterator class not working whoa, amazing + surprising!!! now, I have to check that code again ... :-) > --- Urspr�ngliche Nachricht --- > Von: Pit Capitain > An: ruby-talk@ruby-lang.org (ruby-talk ML) > Betreff: Re: iterator class not working > Datum: Sat, 25 Mar 2006 01:14:09 +0900 > > Peter Ertl schrieb: > > class Iterator > > ... > > end > > > > i = Iterator.new( %w{ Ringo John Paul George } ) > > > > while item = i.next > > puts item > > end > > Peter, test your code with > > puts i.next > puts i.next > > I don't think you can get away with only one continuation. > > Regards, > Pit >