Then you do this:
proc myDeepCopy[T](src: ref T): ref T =
new(result)
result[] = src[]
proc myDeepCopy[T](dst, src: ref T) =
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
