Jan. 13, 2010
8:42 a.m.
It doesn't handle recursion, which makes it pretty useless.
That's what #veryDeepCopy does, though it does it in a more complicated way. #deepCopy has the advantage of being simple and fast.
And useless. I've never used it. If you change something here, it subtly breaks something there. I suggest everybody to have a quick look at VW: - they have #copy and #postCopy as we do - they have #shallowCopy that is used from #copy as we do - they have #dcopy (what a horrible name) that is implemented in a similar way to what I suggested for #deepCopy There is nothing else. Lukas -- Lukas Renggli http://www.lukas-renggli.ch