From: nobu@... Date: 2006-06-24T22:33:25+09:00 Subject: [ruby-dev:28827] Re: when *a なかだです。 At Sat, 24 Jun 2006 14:14:15 +0900, Minero Aoki wrote in [ruby-dev:28822]: > 次のように、when *a が動作しなくなっています。 こんなとこでしょうか。 Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.903 diff -p -U2 -r1.903 eval.c --- eval.c 23 Jun 2006 08:28:04 -0000 1.903 +++ eval.c 24 Jun 2006 13:32:04 -0000 @@ -2855,6 +2855,6 @@ rb_eval(VALUE self, NODE *n) ruby_frame->this_func, ruby_frame->this_class); - if (tag->nd_head && nd_type(tag->nd_head) == NODE_WHEN) { - VALUE v = rb_eval(self, tag->nd_head->nd_head); + if (nd_type(tag) == NODE_SPLAT) { + VALUE v = rb_eval(self, tag->nd_head); long i; -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦