note
salva
deep copy is not always the solution:
<p>There is shallow copy in one extreme and deep copy in the other an in the middle lots of intermediate solutions, which one is the good one depends on the particular data representation.
<p>For instance, if you are cloning an object representing an XML node, you will like to deep-copy all its children but not the pointer to its parent.
451436
451506