From: Russell Fulton Date: 2006-08-16T09:28:01+09:00 Subject: Re: problems with dup and clone... Russell Fulton wrote: > OK, not a bug but a feature. My copy of the pickaxe was at home and I > now understand that dup and clone only do shallow copies. I'm wondering > if I can use initialize_copy to copy the arrays that I need -- it is > described as a call back -- do I just define a method of that name and > it will be called on copy? I'll just have to suck and see! final word on this one. Yes initialize_copy does the trick. Iv'e renamed fix to initialize_copy and taken the calls to it out of the code and it all works as it should. Cheers and thanks, Russell -- Posted via http://www.ruby-forum.com/.