new minor language feature: .noSideEffect blocks like .gcsafe blocks
This commit is contained in:
parent
93cf0ef52e
commit
413580bc04
7 changed files with 30 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue