diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-11-26 23:28:02 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-11-27 00:36:29 +0100 |
commit | 413580bc0444fc9d8e01b6af01433f8c08d2d298 (patch) | |
tree | 1b1d5b7ce15100a612621a1cd8871257c4359784 /doc/manual.rst | |
parent | 93cf0ef52ef81af15009566f90e0d020903e8c2b (diff) | |
download | Nim-413580bc0444fc9d8e01b6af01433f8c08d2d298.tar.gz |
new minor language feature: .noSideEffect blocks like .gcsafe blocks
Diffstat (limited to 'doc/manual.rst')
-rw-r--r-- | doc/manual.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index b39711dfb..a646b7963 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -6755,6 +6755,16 @@ routines marked as ``noSideEffect``. func `+` (x, y: int): int +To override the compiler's side effect analysis a ``{.noSideEffect.}`` +pragma block can be used: + +.. code-block:: nim + + func f() = + {.noSideEffect.}: + echo "test" + + compileTime pragma ------------------ The ``compileTime`` pragma is used to mark a proc or variable to be used at |