From: Mark Hubbart Date: 2004-06-10T14:16:14+09:00 Subject: Re: method with yield via send On Jun 9, 2004, at 6:02 PM, nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 10 Jun 2004 05:24:21 +0900, > Mark Hubbart wrote in [ruby-talk:102995]: >> In Ruby 2.0, you will be able to do something like this: >> >> c = Class.new >> foop = lambda {|&b| b.call * 5 } >> c.send(:define_method, :foo, foop) > > It has been implemented in 1.9. > > Tue May 25 11:54:13 2004 Nobuyoshi Nakada > > * eval.c (rb_yield_0, proc_invoke, proc_arity): allow passing a block > to a Proc. [ruby-dev:23533] > > * parse.y (block_par, block_var): ditto. Well, then, that's a great reason for me to upgrade... On a related note, it's a little difficult for me to find out when these different things are implemented... What's the best way for a person to see all the features that have been implemented since their last update of the 1.9 build? cheers, Mark