How about
proc myDeepCopy[T](src: ref T): ref T =
new(result)
`=copy`(result[], src[])
proc myDeepCopy[T](dst, src: ref T) =
`=copy`(dst[], src[])
Run
- what's with deepCopy? mode80
- what's with deepCopy? sls1005
- what's with deepCopy? treeform
- what's with deepCopy? auxym
- what's with deepCopy? foxoman
- what's with deepCopy? mode80
- what's with deepCopy? Araq
- what's with deepCopy? sls1005
- what's with deepCopy? Hlaaftana
- what's with deepCopy? sls1005
