Re: Return values of modifiers



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/.

.