From: ts Date: 2001-09-04T00:45:47+09:00 Subject: [ruby-talk:20785] Re: RCR: non-bang equivalent to []= >>>>> "K" == Kevin Smith writes: K> class Array K> def copy K> return []+self K> end K> end Probably I'm missing something but you have written #clone pigeon% ruby class Array def copy [] + self end end a = [1, 2] c = [1, 3] a << c b = a.copy c[0] = 4 p b ^D [1, 2, [4, 3]] pigeon% Guy Decoux