diff options
author | Zahary Karadjov <zahary@gmail.com> | 2018-04-29 13:50:21 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-07 09:37:49 +0200 |
commit | ae5c946a325c8833472173e63017dbed39f23abe (patch) | |
tree | 14922c780706850e7f47c50114dfbe9a7ce6eebb /doc/manual.rst | |
parent | b0d85b0adf950685e2f7d88665a3d5b03cd06cfd (diff) | |
download | Nim-ae5c946a325c8833472173e63017dbed39f23abe.tar.gz |
Support thread-local variables declared inside procs; fixes #7565
Diffstat (limited to 'doc/manual.rst')
-rw-r--r-- | doc/manual.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index fabcf058a..1a4ed19b7 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -7798,8 +7798,9 @@ Future directions: Threadvar pragma ---------------- -A global variable can be marked with the ``threadvar`` pragma; it is -a `thread-local`:idx: variable then: +A variable can be marked with the ``threadvar`` pragma, which makes it a +`thread-local`:idx: variable; Additionally, this implies all the effects +of the ``global`` pragma. .. code-block:: nim var checkpoints* {.threadvar.}: seq[string] |