mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 21:43:33 +00:00
Add a note about the sideeffect pragma (#23543)
(cherry picked from commit 63398b11f5)
This commit is contained in:
committed by
narimiran
parent
cd65b5e5f8
commit
8f5451832e
@@ -5358,6 +5358,8 @@ To override the compiler's side effect analysis a `{.noSideEffect.}`
|
||||
**Side effects are usually inferred. The inference for side effects is
|
||||
analogous to the inference for exception tracking.**
|
||||
|
||||
When the compiler cannot infer side effects, as is the case for imported
|
||||
functions, one can annotate them with the `sideEffect` pragma.
|
||||
|
||||
GC safety effect
|
||||
----------------
|
||||
|
||||
Reference in New Issue
Block a user