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

ruby-changes:49842

From: nobu <ko1@a...>
Date: Fri, 19 Jan 2018 22:41:48 +0900 (JST)
Subject: [ruby-changes:49842] nobu:r61960 (trunk): parse.y: assign to $$

nobu	2018-01-19 22:41:44 +0900 (Fri, 19 Jan 2018)

  New Revision: 61960

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61960

  Log:
    parse.y: assign to $$
    
    * parse.y (command): assign to $$.  should not rely upon
      undocumented behavior.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 61959)
+++ parse.y	(revision 61960)
@@ -1354,6 +1354,7 @@ command		: fcall command_args       %pre https://github.com/ruby/ruby/blob/trunk/parse.y#L1354
 		    /*%%%*/
 			$1->nd_args = $2;
 			nd_set_last_loc($1, nd_last_loc($2));
+			$$ = $1;
 		    /*% %*/
 		    /*% ripper: command($1, $2) %*/
 		    }

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

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