Hi,
In message "Object#copy [rcr?]"
on 04/05/17, "Ara.T.Howard" <Ara.T.Howard / noaa.gov> writes:
|can anyone think of a good reason NOT to have this feature?
|
| class Object
| def copy
| Marshal::load(Marshal::dump(self))
| end
| end
I think deep copy should be implemented independently from
marshaling, which is inefficient and limited scheme for deep copy.
The only problem is that it's difficult to implement.
matz.