From: Brian Candler Date: 2010-10-23T21:25:58+09:00 Subject: Re: Why no yield in 1.9.2 blocks? Josh Cheek wrote in post #956495: > I always figured it was because it was enclosing its environment, and > having > yield in the block and the environment could bet ambiguous. Yes, I believe that's the case. Consider: def foo # <- block passed implicitly bar do |&baz| yield 123 # <- invokes the outer block end end I think of 'yield' like 'return'. 'yield' invokes the block passed in to the enclosing method, and 'return' returns from the enclosing method. -- Posted via http://www.ruby-forum.com/.