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

ruby-changes:14176

From: matz <ko1@a...>
Date: Fri, 4 Dec 2009 19:54:04 +0900 (JST)
Subject: [ruby-changes:14176] Ruby:r25994 (trunk): * insns.def (defined): should respect #respond_to_missing? as

matz	2009-12-04 19:53:21 +0900 (Fri, 04 Dec 2009)

  New Revision: 25994

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

  Log:
    * insns.def (defined): should respect #respond_to_missing? as
      #respond_to? does.

  Modified files:
    trunk/ChangeLog
    trunk/insns.def

Index: insns.def
===================================================================
--- insns.def	(revision 25993)
+++ insns.def	(revision 25994)
@@ -799,6 +799,8 @@
 		}
 	    }
 	}
+	if (RTEST(rb_funcall(v, rb_intern("respond_to_missing?"), 2, obj, Qfalse)))
+	    expr_type = "method";
 	break;
       }
       case DEFINED_YIELD:
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25993)
+++ ChangeLog	(revision 25994)
@@ -3,6 +3,11 @@
 	* parse.y (k_def): adjust the location of method definition to the
 	  line of def.  [Bug #2427]
 
+Fri Dec  4 19:05:28 2009  Yukihiro Matsumoto  <matz@r...>
+
+	* insns.def (defined): should respect #respond_to_missing? as
+	  #respond_to? does.
+
 Fri Dec  4 15:50:18 2009  Shugo Maeda  <shugo@r...>
 
 	* vm_eval.c (yield_under): does not yield self, and passes blockptr

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

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