From: Jim Freeze Date: 2003-07-22T02:03:51+09:00 Subject: Re: Deep copy On Tuesday, 22 July 2003 at 1:43:22 +0900, Simon Strandgaard wrote: > On Tue, 22 Jul 2003 01:43:45 +0900, Jim Freeze wrote: > > > Hi > > > > I find that when I need to do a deep copy that I > > usually just do the following: > > > > x = Marshal.load(Marshal.dump(y) > > > > > > Is there a more concise (possibly faster) method that > > combines these two steps? If not, should we add one? > > How about this ? > > http://www.rubygarden.org/ruby?StandardClassExtensions/Object Looks good. Has there been any discussion on this? -- Jim Freeze ---------- All men are mortal. Socrates was mortal. Therefore, all men are Socrates. -- Woody Allen