From: Leo Date: 2009-02-26T00:42:44+09:00 Subject: Re: Where is splat implemented? / How does it work? >>> [*str] > => ["oops"] > > vs > >>> [str.to_a] > => [["oops"]] > > I'm really curious where / how this happens. If anyone can point me to > either rubinius or to mri, I would be very grateful. If you do grep -i splat *.c, you'll find hits in parse.c and compile.c (for ruby 1.9.1). I'd assume it's a mostly parser thing. That to_a comes into play probably it because it makes sure it's an array it is unsplicing -- just an assumption.