From: dblack@... Date: 2003-10-25T02:57:36+09:00 Subject: Re: Struggling with variable arguments to block Hi -- On Sat, 25 Oct 2003, ts wrote: > >>>>> "d" == dblack writes: > > d> I confess to confusion about the new arg/param semantics. For example: > > d> irb(main):005:0> *a = 1,2 > d> => [1, 2] > d> irb(main):006:0> *a = [1,2] > d> => [1, 2] > > svg% ./ruby -ve '*a = 1,2; p a; *a = [1,2]; p a; *a = [[1,2]]; p a' > ruby 1.8.0 (2003-10-24) [i686-linux] > [1, 2] > [[1, 2]] > [[[1, 2]]] OK... that's a start :-) Just so you know I wasn't being totally frivolous: irb(main):001:0> *a = 1,2 => [1, 2] irb(main):002:0> *a = [1,2] => [1, 2] irb(main):003:0> VERSION => "1.8.0" so I guess this is a case where the irb parser hasn't caught up? David -- David Alan Black home: dblack@superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav