ruby-changes:8163
From: nobu <ko1@a...>
Date: Sun, 5 Oct 2008 23:07:20 +0900 (JST)
Subject: [ruby-changes:8163] Ruby:r19691 (trunk): * vm_method.c (rb_mod_modfunc): method undefined in included module
nobu 2008-10-05 23:07:06 +0900 (Sun, 05 Oct 2008) New Revision: 19691 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19691 Log: * vm_method.c (rb_mod_modfunc): method undefined in included module may not have nd_body. [ruby-core:18738] Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19690) +++ ChangeLog (revision 19691) @@ -1,3 +1,8 @@ +Sun Oct 5 23:06:55 2008 Nobuyoshi Nakada <nobu@r...> + + * vm_method.c (rb_mod_modfunc): method undefined in included module + may not have nd_body. [ruby-core:18738] + Sun Oct 5 21:28:58 2008 Tadayoshi Funaba <tadf@d...> * lib/rational.rb: resolved conflicts of aliases. Index: vm_method.c =================================================================== --- vm_method.c (revision 19690) +++ vm_method.c (revision 19691) @@ -1030,7 +1030,7 @@ fbody = search_method(rb_cObject, id, &m); } if (fbody == 0 || fbody->nd_body == 0) { - rb_bug("undefined method `%s'; can't happen", rb_id2name(id)); + rb_print_undef(module, id, 0); } if (nd_type(fbody->nd_body->nd_body) != NODE_ZSUPER) { break; /* normal case: need not to follow 'super' link */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/