whoa, amazing + surprising!!!

now, I have to check that code again ... :-)

> --- Ursprgliche Nachricht ---
> Von: Pit Capitain <pit / capitain.de>
> 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
>