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

ruby-changes:2633

From: ko1@a...
Date: 7 Dec 2007 11:51:57 +0900
Subject: [ruby-changes:2633] matz - Ruby:r14124 (trunk): * parse.y (arg): tUPLUS no longer works as identity operation any

matz	2007-12-07 11:51:31 +0900 (Fri, 07 Dec 2007)

  New Revision: 14124

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
    trunk/version.h

  Log:
    * parse.y (arg): tUPLUS no longer works as identity operation any
      more.  inspired by [ruby-talk:265532].

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=14124&r2=14123
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=14124&r2=14123
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14124&r2=14123

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14123)
+++ ChangeLog	(revision 14124)
@@ -1,3 +1,8 @@
+Thu Dec  6 19:48:41 2007  Yukihiro Matsumoto  <matz@r...>
+
+	* parse.y (arg): tUPLUS no longer works as identity operation any
+	  more.  inspired by [ruby-talk:265532].
+
 Thu Dec  6 18:22:11 2007  Tanaka Akira  <akr@f...>
 
 	* encoding.c (rb_enc_precise_mbclen): new function for mbclen with
Index: parse.y
===================================================================
--- parse.y	(revision 14123)
+++ parse.y	(revision 14124)
@@ -2035,12 +2035,7 @@
 		| tUPLUS arg
 		    {
 		    /*%%%*/
-			if ($2 && nd_type($2) == NODE_LIT) {
-			    $$ = $2;
-			}
-			else {
-			    $$ = call_uni_op($2, tUPLUS);
-			}
+			$$ = call_uni_op($2, tUPLUS);
 		    /*%
 			$$ = dispatch2(unary, ripper_intern("+@"), $2);
 		    %*/
Index: version.h
===================================================================
--- version.h	(revision 14123)
+++ version.h	(revision 14124)
@@ -1,7 +1,7 @@
 #define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2007-12-06"
+#define RUBY_RELEASE_DATE "2007-12-07"
 #define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20071206
+#define RUBY_RELEASE_CODE 20071207
 #define RUBY_PATCHLEVEL 0
 
 #define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
 #define RUBY_VERSION_TEENY 0
 #define RUBY_RELEASE_YEAR 2007
 #define RUBY_RELEASE_MONTH 12
-#define RUBY_RELEASE_DAY 6
+#define RUBY_RELEASE_DAY 7
 
 #ifdef RUBY_EXTERN
 RUBY_EXTERN const char ruby_version[];

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

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