From: Jacob Fugal Date: 2006-02-08T01:20:09+09:00 Subject: Re: Method Definitions: &block vs. yield() On 2/7/06, Robert Klemme wrote:> Marcin Miel�y�ski wrote:> > James H. wrote:> >> > Generally yield is much faster than converting block to a Proc. But> > there are situations when you have to explicitly pass the block and> > convert it, these two are the most obvious that come to my mind:> >> > saving a Proc object for delayed execution> > implementing recursive iterators>> More generally all situations where you do not want to invoke the block> from this method but pass it on to another. (or both) Jacob Fugal