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

ruby-changes:20235

From: matz <ko1@a...>
Date: Wed, 29 Jun 2011 14:20:43 +0900 (JST)
Subject: [ruby-changes:20235] matz:r32283 (trunk): * variable.c (rb_const_get_0): should not look for superclasses if

matz	2011-06-29 14:20:37 +0900 (Wed, 29 Jun 2011)

  New Revision: 32283

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

  Log:
    * variable.c (rb_const_get_0): should not look for superclasses if
      the second optional argument is given for #const_get().
      fix [Bug #3422] [Bug #3423]

  Modified files:
    trunk/ChangeLog
    trunk/variable.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32282)
+++ ChangeLog	(revision 32283)
@@ -1,3 +1,9 @@
+Wed Jun 29 13:55:36 2011  Yukihiro Matsumoto  <matz@r...>
+
+	* variable.c (rb_const_get_0): should not look for superclasses if
+	  the second optional argument is given for #const_get().
+	  fix [Bug #3422] [Bug #3423]
+
 Wed Jun 29 12:07:27 2011  Eric Hodel  <drbrain@s...>
 
 	* math.c:  Attach documentation for Math.
Index: variable.c
===================================================================
--- variable.c	(revision 32282)
+++ variable.c	(revision 32283)
@@ -1613,7 +1613,7 @@
 	    }
 	    return value;
 	}
-	if (!recurse && klass != rb_cObject) break;
+	if (!recurse) break;
 	tmp = RCLASS_SUPER(tmp);
     }
     if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {

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

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