From: Tomas Matousek Date: 2010-05-02T14:16:37+09:00 Subject: [ruby-core:29927] Re: [Feature #3232] Loops (while/until) should return last statement value if any, like if/unless It returns the argument of break: x = while true; break 123; end #=> 123 If you don't break out of the loop it makes sense that the result is nil. Tomas -----Original Message----- From: Kornelius Kalnbach [mailto:murphy@rubychan.de] Sent: Saturday, May 01, 2010 9:40 PM To: ruby-core@ruby-lang.org Subject: [ruby-core:29924] Re: [Feature #3232] Loops (while/until) should return last statement value if any, like if/unless On 02.05.10 01:56, Yukihiro Matsumoto wrote: > The last evaluated expression in this case is "i < 3", so the loop > statement would have the return value of false value, even if it would > return the *last* value. So, shouldn't it return false then? [murphy]