From: Dave Thomas Date: 2006-12-12T08:15:46+09:00 Subject: Re: Bug in Ruby or Pickaxe? (was: Re: else inside rescue is useless?) On Dec 11, 2006, at 7:55 AM, Robert Klemme wrote: > What bugs me is that the "else" clause is not executed if it is > left via a "return". Taking the Pickaxe 2nd edition pg. 362 > literally ("If an else clause is present, its body is executed if > no exceptions were raised in code.") it would have to be executed > in that case, too. So, if the interpreter would behave as stated > in the book, there was actually a difference between the code at > the end of the block and the code inside the else clause. Why would you expect the else clause to be executed if a return is executed? That seems counter-intuitive to me. Cheers Dave