From: Robert Klemme Date: 2012-09-18T22:16:19+09:00 Subject: Re: Bug or feature On Tue, Sep 18, 2012 at 12:19 PM, Hans Mackowiak wrote: > when you only have a flat array, you could do: > b = a.map(&:clone) > > but beware, some objects like fixnumbers dont want to be cloned Well, you can do b = a.map {|x| x.clone rescue x} But that is still not a deep copy - unless types of objects in a implement deep copy in their #clone method. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/