1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* compile.c (setup_arg): support kind of "m(*ary, x)" method call.

([ruby-dev:31048]).



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-06-25 17:52:33 +00:00
parent ed4e57690c
commit 762a7ec12e
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Tue Jun 26 02:50:24 2007 Koichi Sasada <ko1@atdot.net>
* compile.c (setup_arg): support kind of "m(*ary, x)" method call.
([ruby-dev:31048]).
Tue Jun 26 00:28:44 2007 Koichi Sasada <ko1@atdot.net> Tue Jun 26 00:28:44 2007 Koichi Sasada <ko1@atdot.net>
* insnhelper.ci, vm.c: complete block parameter support. * insnhelper.ci, vm.c: complete block parameter support.

View file

@ -2430,6 +2430,7 @@ setup_arg(rb_iseq_t *iseq, LINK_ANCHOR *args, NODE *node, VALUE *flag)
case NODE_SPLAT: { case NODE_SPLAT: {
COMPILE(args, "args (splat)", argn->nd_head); COMPILE(args, "args (splat)", argn->nd_head);
argc = INT2FIX(1); argc = INT2FIX(1);
nsplat++;
*flag |= VM_CALL_ARGS_SPLAT_BIT; *flag |= VM_CALL_ARGS_SPLAT_BIT;
break; break;
} }