Hi,

At Fri, 17 Jun 2005 19:12:43 +0900,
Shugo Maeda wrote in [ruby-core:05235]:
> --- add_event_hook_weirdness.rb.orig    2005-06-17 19:10:25.055358488 +0900
> +++ add_event_hook_weirdness.rb 2005-06-17 19:10:43.776512440 +0900
> @@ -579,6 +579,14 @@
>          {
>            VALUE signature;
> 
> +          if (klass) {
> +            if (TYPE(klass) == T_ICLASS) {
> +                klass = RBASIC(klass)->klass;
> +            }
> +            else if (FL_TEST(klass, FL_SINGLETON)) {
> +                klass = self;
> +            }
> +          }
>            signature = rb_ary_new2(2);
>            rb_ary_store(signature, 0, klass);
>            rb_ary_store(signature, 1, ID2SYM(mid));
> 
> 
> Maybe, EXEC_EVENT_HOOK() should do this.

Or rb_call() should rather?

-- 
Nobu Nakada