From: matz@... (Yukihiro Matsumoto) Date: 2002-12-05T17:03:11+09:00 Subject: [ruby-dev:19005] Re: deprecated method( Re: Different caller(0) in trace_func when NameError from toplevel between 1.6 and 1.7) まつもと ゆきひろです In message "[ruby-dev:19004] Re: deprecated method( Re: Different caller(0) in trace_func when NameError from toplevel between 1.6 and 1.7)" on 02/12/05, nobu.nakada@nifty.ne.jp writes: |> これも直接は使わないのでなしでいいのかなぁ。つけるとすれば |> rb_deprecate_method_id()あたり? | |忘れるところでしたが、rb_deprecated_alias()はなしにして、関数名 |は以下のようにしました。 | |void rb_warn_deprecated _((VALUE, const char*, const char*, int)); |void rb_deprecate_method_id _((VALUE, ID, ID, int)); |void rb_deprecate_method _((VALUE, const char*, const char*, int)); ま、そんなもんかなあ。 |あとrb_call()の引数scopeも、即値だとつらくなってきたので名前を |つけてみましたが、だいたいこんな感じであってるでしょうか。 | |#define CALLED_METHOD 0 |#define CALLED_FCALL 1 |#define CALLED_VCALL 2 |#define CALLED_SUPER 3 |#define CALLED_DIRECT 4 CALLED_DIRECTってなに? そんなのあったっけ? あとはそれで合ってると思いますが。