From: matz@... (Yukihiro Matsumoto) Date: 2003-06-20T03:17:37+09:00 Subject: [ruby-dev:20387] Re: 1.8.0 preview3 schedule まつもと ゆきひろです In message "[ruby-dev:20360] Re: 1.8.0 preview3 schedule" on 03/06/18, Koji Arai writes: |以下のように、rb_f_lambda() は現時点で rb_block_proc() と違 |うようなのですが、これに関して移行措置はないのでしょうか? |# 影響がどの程度あるのかわかってないです | | VALUE | rb_block_proc() | { | return proc_alloc(rb_cProc, Qfalse); | } | | VALUE | rb_f_lambda() | { | rb_warn("rb_f_lambda() is deprecated; use rb_block_proc() instead"); | return proc_alloc(rb_cProc, Qtrue); | } 大差ないはずなのでこのままにします。 つまり、今までrb_f_lambda()を呼んでいたところは本来は rb_block_proc()を呼び出すべきだったのにそれが提供していなかっ たのだと解釈することにします。 |これは、Proc だけの話なのでしょうか?つまり、 | | def foo | yield 1,2,3 | end | foo {|args| p args} | => ruby 1.6.8 (2002-12-24) [i586-linux] | [1, 2, 3] | => ruby 1.8.0 (2003-06-16) [i586-linux] | [1, 2, 3] | |に関して移行の必要はないということでしょうか。 バグです。直します。