Yukihiro Matsumoto
2/16/2007 10:41:00 AM
Hi,
In message "Re: is it behaving strange ?"
on Fri, 16 Feb 2007 04:45:38 +0900, dblack@wobblini.net writes:
|irb(main):001:0> a = [9,5]
|=> [9, 5]
|irb(main):002:0> b = 9,5,6
|=> [9, 5, 6]
|irb(main):003:0> b = *a, 6
|=> [9, 5]
|irb(main):004:0> b = [*a, 6]
|=> [9, 5, 6]
|
|I don't really understand the third one. I would have expected it to
|be the same as the second. I haven't tried a more recent 1.9 version,
|though -- maybe it's been changed.
You don't understand because it's a bug. I will fix it soon.
matz.