add: proc deepCopy*[T](y: T): T (#9740)
This commit is contained in:
parent
8ff18c0fb9
commit
ab38c075f8
1 changed files with 4 additions and 0 deletions
|
|
@ -4209,6 +4209,10 @@ when hasAlloc and not defined(nimscript) and not defined(JS) and
|
||||||
## for the implementation of ``spawn``.
|
## for the implementation of ``spawn``.
|
||||||
discard
|
discard
|
||||||
|
|
||||||
|
proc deepCopy*[T](y: T): T =
|
||||||
|
## Convenience wrapper around `deepCopy` overload.
|
||||||
|
deepCopy(result, y)
|
||||||
|
|
||||||
include "system/deepcopy"
|
include "system/deepcopy"
|
||||||
|
|
||||||
proc procCall*(x: untyped) {.magic: "ProcCall", compileTime.} =
|
proc procCall*(x: untyped) {.magic: "ProcCall", compileTime.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue