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

ruby-changes:10734

From: takano32 <ko1@a...>
Date: Sat, 14 Feb 2009 13:15:48 +0900 (JST)
Subject: [ruby-changes:10734] Ruby:r22298 (trunk): * iseq.c: remove nil parameter from Proc#parameters

takano32	2009-02-14 13:15:32 +0900 (Sat, 14 Feb 2009)

  New Revision: 22298

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

  Log:
    * iseq.c: remove nil parameter from Proc#parameters
      after rest appeared.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22297)
+++ ChangeLog	(revision 22298)
@@ -1,3 +1,8 @@
+Sat Feb 14 13:14:18 2009  TAKANO Mitsuhiro (takano32)  <tak@n...>
+
+	* iseq.c: remove nil parameter from Proc#parameters
+	  after rest appeared.
+
 Sat Feb 14 07:23:52 2009  NARUSE, Yui  <naruse@r...>
 
 	* string.c (rb_external_str_new_with_enc): change evaluatioin order
Index: iseq.c
===================================================================
--- iseq.c	(revision 22297)
+++ iseq.c	(revision 22298)
@@ -1304,7 +1304,6 @@
 	for (i = 0; i < iseq->argc; i++) {
 	    PARAM_TYPE(opt);
 	    rb_ary_push(a, rb_id2name(PARAM_ID(i)) ? ID2SYM(PARAM_ID(i)) : Qnil);
-	    rb_ary_push(a, Qnil);
 	    rb_ary_push(args, a);
 	}
     }
@@ -1333,7 +1332,6 @@
 	for (i = iseq->arg_post_start; i < r; i++) {
 	    PARAM_TYPE(opt);
 	    rb_ary_push(a, rb_id2name(PARAM_ID(i)) ? ID2SYM(PARAM_ID(i)) : Qnil);
-	    rb_ary_push(a, Qnil);
 	    rb_ary_push(args, a);
 	}
     }

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

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