From: matz@... (Yukihiro Matsumoto) Date: 2001-06-01T16:52:15+09:00 Subject: [ruby-talk:16125] Re: RCR: coexistent ruby versions installed by default Hi, In message "[ruby-talk:16122] Re: RCR: coexistent ruby versions installed by default" on 01/06/01, ts writes: | It's normal ? | |pigeon% ./ruby -ve 'def toto(a, b) end; toto (1, 2, 3)' |ruby 1.7.1 (2001-06-01) [i686-linux] |-e:1: warning: toto (...) interpreted as method call No! Sorry. --- parse.y 2001/06/01 06:47:30 1.101 +++ parse.y 2001/06/01 07:51:37 @@ -1020,3 +1020,3 @@ { - $$ = arg_blk_pass(list_append(NEW_LIST($1),$3), $4); + $$ = arg_blk_pass(list_concat(NEW_LIST($1),$3), $4); } @@ -1033,3 +1033,3 @@ value_expr($6); - $$ = arg_concat(list_append($1,$3), $6); + $$ = arg_concat(list_concat($1,$3), $6); $$ = arg_blk_pass($$, $7); @@ -1056,3 +1056,3 @@ value_expr($6); - $$ = list_append(list_append($1,$3), NEW_HASH($5)); + $$ = list_append(list_concat($1,$3), NEW_HASH($5)); $$ = arg_blk_pass($$, $6); @@ -1070,3 +1070,3 @@ value_expr($8); - $$ = arg_concat(list_append(list_append(NEW_LIST($1), $3), NEW_HASH($5)), $8); + $$ = arg_concat(list_append(list_concat(NEW_LIST($1), $3), NEW_HASH($5)), $8); $$ = arg_blk_pass($$, $9);