Sure, it would be nice while/until loops return value of the last iteration,
I agree.

On 30 April 2010 17:28:44 UTC+2, Michel Demazure <michel / demazure.com>wrote:

> David A. Black wrote:
>
> > In the case of the while in modifier position, it looks like it's
> > equivalent to this:
> >
> >    while <some_test>
> >      ind += 1
> >    end
> >
> > and it is. I prefer this to having it be equivalent to:
> >
> >    loop do x += 1; break x if <some_test>; end
> >
> >
> > David
> >
> Yes, that was my point.
> _md
> --
> Posted via http://www.ruby-forum.com/.
>
>