[前][次][番号順一覧][スレッド一覧]

ruby-changes:24182

From: nobu <ko1@a...>
Date: Wed, 27 Jun 2012 16:49:55 +0900 (JST)
Subject: [ruby-changes:24182] nobu:r36233 (trunk): name of klass

nobu	2012-06-27 16:46:54 +0900 (Wed, 27 Jun 2012)

  New Revision: 36233

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36233

  Log:
    name of klass
    
    * vm_method.c (rb_method_entry_make): use name of klass explicitly.

  Modified files:
    trunk/vm_method.c

Index: vm_method.c
===================================================================
--- vm_method.c	(revision 36232)
+++ vm_method.c	(revision 36233)
@@ -205,7 +205,7 @@
 #if NOEX_NOREDEF
 	if (old_me->flag & NOEX_NOREDEF) {
 	    rb_raise(rb_eTypeError, "cannot redefine %"PRIsVALUE"#%"PRIsVALUE,
-		     klass, rb_id2str(mid));
+		     rb_class_name(klass), rb_id2str(mid));
 	}
 #endif
 	rb_vm_check_redefinition_opt_method(old_me, klass);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]