diff options
author | Araq <rumpf_a@web.de> | 2011-11-29 17:27:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-11-29 17:27:48 +0100 |
commit | 7fcbdc6d422c92ec5070bee684c37a42c789dd46 (patch) | |
tree | cef1fb3a4b4f68d96e8d3f6b8adbcf6e0cff1a22 /lib/system | |
parent | 31a994cc107100c9c6f84455832ccce0b5fd9661 (diff) | |
download | Nim-7fcbdc6d422c92ec5070bee684c37a42c789dd46.tar.gz |
implemented 'let' statement
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/threads.nim | 3 |
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: |