Yasushi Shoji <yashi / yashi.com> writes: > > I don't know if this is a bug or expected behavior - I could argue it > > either way, but.. > > it is expected behavior as far as I can tell. The method Array#=, or > should I say method Array#[]=(?), takes the reference of a, not a copy > of a. you can use Array#dup to create a copy of a to insert to a[1]. Thanks. I understand the above, though. I was interested that the interpreter looped when 'a' is used as a hash key, but: a = [1,2,3] a[1] = a p a p a.to_s p a.id >> [1, [...], 3] "11[...]33" 537681066 Regards Dave