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

ruby-changes:25265

From: usa <ko1@a...>
Date: Thu, 25 Oct 2012 13:24:09 +0900 (JST)
Subject: [ruby-changes:25265] usa:r37317 (trunk): * parse.y: show a warning for concatenating string literals because

usa	2012-10-25 13:22:21 +0900 (Thu, 25 Oct 2012)

  New Revision: 37317

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

  Log:
    * parse.y: show a warning for concatenating string literals because
      it will be deprecated in the future.
      patched by mame (Yusuke Endoh) at [ruby-core:44207].
      [ruby-core:44156] [Feature #6265]

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37316)
+++ ChangeLog	(revision 37317)
@@ -1,3 +1,10 @@
+Thu Oct 25 13:09:01 2012  NAKAMURA Usaku  <usa@r...>
+
+	* parse.y: show a warning for concatenating string literals because
+	  it will be deprecated in the future.
+	  patched by mame (Yusuke Endoh) at [ruby-core:44207].
+	  [ruby-core:44156] [Feature #6265]
+
 Wed Oct 24 18:49:16 2012  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/objspace/objspace.c (type2sym, count_objects_size): use enum
Index: parse.y
===================================================================
--- parse.y	(revision 37316)
+++ parse.y	(revision 37317)
@@ -3810,6 +3810,7 @@
 		| string string1
 		    {
 		    /*%%%*/
+			rb_warning0("string concatenation syntax will be deprecated");
 			$$ = literal_concat($1, $2);
 		    /*%
 			$$ = dispatch2(string_concat, $1, $2);

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

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