Ara.T.Howard wrote:
> can anyone think of a good reason NOT to have this feature?
> 
>   class Object
>     def copy
>       Marshal::load(Marshal::dump(self))
>     end
>   end
> 
> i include this is nearly all of my own code and i know others do the same
> quite often - why no method which does this?

In the past I used the very same piece of code for deep copy.
Somewhere I changed my mind from liking it.. to not liking it.
I consider it kludgy to deepcopynig with help of serialize,
and its inefficient compared to custom #clone method.

Sorry.

--
Simon Strandgaard