summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-11-29 17:27:48 +0100
committerAraq <rumpf_a@web.de>2011-11-29 17:27:48 +0100
commit7fcbdc6d422c92ec5070bee684c37a42c789dd46 (patch)
treecef1fb3a4b4f68d96e8d3f6b8adbcf6e0cff1a22 /lib/system
parent31a994cc107100c9c6f84455832ccce0b5fd9661 (diff)
downloadNim-7fcbdc6d422c92ec5070bee684c37a42c789dd46.tar.gz
implemented 'let' statement
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/threads.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/system/threads.nim b/lib/system/threads.nim
index ce07f0c3b..7c26cf8ee 100755
--- a/lib/system/threads.nim
+++ b/lib/system/threads.nim
@@ -360,7 +360,8 @@ proc threadId*[TArg](t: var TThread[TArg]): TThreadId[TArg] {.inline.} =
   result = addr(t)
 
 proc myThreadId*[TArg](): TThreadId[TArg] =
-  ## returns the thread ID of the thread that calls this proc.
+  ## returns the thread ID of the thread that calls this proc. This is unsafe
+  ## because the type ``TArg`` is not checked for consistency!
   result = cast[TThreadId[TArg]](ThreadVarGetValue(globalsSlot))
 
 when false: