summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAntonis Geralis <43617260+planetis-m@users.noreply.github.com>2024-05-08 23:53:29 +0300
committerGitHub <noreply@github.com>2024-05-08 14:53:29 -0600
commit63398b11f51529d8a3350853fcf7b7a1cf522b7a (patch)
tree8a211c0a5667685db72664f05ecf27c4eb8e48a7 /doc
parentd8e1504ed1fd2371f2ab7784c0f4b5f6376325a5 (diff)
downloadNim-63398b11f51529d8a3350853fcf7b7a1cf522b7a.tar.gz
Add a note about the sideeffect pragma (#23543)
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 3b402e9f4..bb7b603a8 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -5419,6 +5419,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
 ----------------