diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-02 14:51:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-02 14:51:19 +0000 |
commit | 0c83f23272c9b76aa60208eca38fe5b780616e96 (patch) | |
tree | b91d85c99f8824a495ee7f3f00a77851a8a7c299 | |
parent | c3f059226764f98cd30b8a7441b006de16edaa3a (diff) | |
download | ruby-0c83f23272c9b76aa60208eca38fe5b780616e96.tar.gz |
* parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
fixed: [ruby-dev:26942]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | parse.y | 18 |
2 files changed, 23 insertions, 8 deletions
@@ -1,14 +1,19 @@ +Fri Sep 2 23:51:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID. + fixed: [ruby-dev:26942] + Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_call0): wrong condition for $SAFE restoration. Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> - * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't - work (gives wrong order of arguments). + * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't + work (gives wrong order of arguments). - * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace - to support '-namespace' option of 'interp invokehidden' command + * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace + to support '-namespace' option of 'interp invokehidden' command on Tcl8.5. Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org> @@ -4095,15 +4095,25 @@ f_norm_arg : tCONSTANT f_arg : f_norm_arg { - $$ = rb_ary_new3(1, ID2SYM($1)); + /*%%%*/ + VALUE arg = ID2SYM($1); + /*% + VALUE arg = $1; + %*/ + $$ = rb_ary_new3(1, arg); } | f_arg ',' f_norm_arg { + /*%%%*/ + VALUE arg = ID2SYM($3); + /*% + VALUE arg = $3; + %*/ $$ = $1; - if (rb_ary_includes($$, ID2SYM($3))) { - yyerror("duplicated argument name"); + if (rb_ary_includes($$, arg)) { + yyerror("duplicated argument arg"); } - rb_ary_push($$, ID2SYM($3)); + rb_ary_push($$, arg); } ; |