diff --git a/ChangeLog b/ChangeLog index 720af5015a..40bc30a48a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada + + * object.c (rb_mod_initialize): since module_eval no longer passes + self, use module_exec instead. fixed: [ruby-dev:29637] + Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto * class.c (rb_include_module): remove unnecessary check. diff --git a/object.c b/object.c index 89742b2ca9..a4cfda9b31 100644 --- a/object.c +++ b/object.c @@ -1205,7 +1205,7 @@ static VALUE rb_mod_initialize(VALUE module) { if (rb_block_given_p()) { - rb_mod_module_eval(0, 0, module); + rb_mod_module_exec(1, &module, module); } return Qnil; }