Re: Return values of modifiers
- From: Michel Demazure <michel@xxxxxxxxxxxx>
- Date: Fri, 30 Apr 2010 10:28:44 -0500
David A. Black wrote:
In the case of the while in modifier position, it looks like it'sYes, that was my point.
equivalent to this:
ind += 1
and it is. I prefer this to having it be equivalent to:
loop do x += 1; break x if <some_test>; end
Posted via http://www.ruby-forum.com/.