summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-06-09 08:03:54 +0200
committerAraq <rumpf_a@web.de>2014-06-09 08:03:54 +0200
commit947b152163d04b4ac27697646a5200496573be13 (patch)
treec9050f4e9f46d6d7cb3756a4047dd8cad360f652 /lib/system.nim
parent4220b1c81d433e30e3d41c8ecb05b2a9edaface5 (diff)
downloadNim-947b152163d04b4ac27697646a5200496573be13.tar.gz
some changes
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index dcfe42f2c..816995057 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2942,6 +2942,10 @@ proc locals*(): TObject {.magic: "Locals", noSideEffect.} =
   ##   # -> B is 1
   discard
 
+proc deepCopy*[T](x: T): T {.magic: "DeepCopy", noSideEffect.}
+  ## performs a deep copy of `x`. This is also used by the code generator
+  ## for the implementation of ``spawn``.
+
 when not defined(booting):
   type
     semistatic*[T] = static[T] | T