From: Jim Freeze Date: 2002-12-18T01:53:47+09:00 Subject: Re: Deep copy in Rub? On Wednesday, 18 December 2002 at 1:50:11 +0900, Florian Frank wrote: > On 2002-12-18 01:20:18 +0900, Yohanes Santoso wrote: > > > anyone can tell why ruby don't have deep copy routine in standard > > > distribution? > > But it has. Didn't you read my post? > > My Ruby has it now: > > [flori@lambda flori](0)$ irb --prompt xmp > VERSION > ==>"1.7.3" > o = ["foo"] > ==>["foo"] > oc = o.deep_clone > ==>["foo"] > o[0].equal? oc[0] > ==>false I just did a CVS get this morning... irb(main):001:0> VERSION => "1.7.3" irb(main):002:0> a=%w{a b c} => ["a", "b", "c"] irb(main):003:0> b=a.deep_clone NoMethodError: undefined method `deep_clone' for ["a", "b", "c"]:Array from (irb):3 -- Jim Freeze ---------- Executive ability is deciding quickly and getting somebody else to do the work. -- John G. Pollard