From: Russell Fulton Date: 2006-08-15T11:37:28+09:00 Subject: Re: problems with dup and clone... Russell Fulton wrote: > > I have tried both dup and clone to copy the default objects but I always > seem to end up with the original object in host. > More investigations reveals that the objects are being at least partially copied. 'simple' variables (strings etc) are copied by arrays are not. I have managed to work around this by adding a method fix to the class which reinitalised the instance arrays to [] and fix'ing the newly dup'ed instances. This appears to be a bug in ruby. I'll see if I can reproduce it in a small program. -- Posted via http://www.ruby-forum.com/.