diff options
author | Araq <rumpf_a@web.de> | 2014-10-21 19:51:46 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-10-21 19:51:46 +0200 |
commit | c95e0df29d67ae1e3c6905a7b3e9e8cc01bde791 (patch) | |
tree | 7759d93b980da48edf1f08ffd16a7704fea7bae5 | |
parent | 53a9d6f5cd199382957188cd8a1a7f0aa5035033 (diff) | |
download | Nim-c95e0df29d67ae1e3c6905a7b3e9e8cc01bde791.tar.gz |
'echo' doesn't lock
-rw-r--r-- | lib/system.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index da49386ed..f8edca760 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -2125,7 +2125,8 @@ elif hostOS != "standalone": inc(i) {.pop.} -proc echo*[T](x: varargs[T, `$`]) {.magic: "Echo", tags: [WriteIOEffect], gcsafe.} +proc echo*[T](x: varargs[T, `$`]) {.magic: "Echo", tags: [WriteIOEffect], gcsafe, + locks: 0.} ## Writes and flushes the parameters to the standard output. ## ## Special built-in that takes a variable number of arguments. Each argument @@ -2141,7 +2142,7 @@ proc echo*[T](x: varargs[T, `$`]) {.magic: "Echo", tags: [WriteIOEffect], gcsafe ## instead. proc debugEcho*[T](x: varargs[T, `$`]) {.magic: "Echo", noSideEffect, - tags: [], raises: [].} + tags: [], raises: [], locks: 0.} ## Same as `echo <#echo>`_, but as a special semantic rule, ``debugEcho`` ## pretends to be free of side effects, so that it can be used for debugging ## routines marked as `noSideEffect <manual.html#nosideeffect-pragma>`_. |