diff options
author | Antonis Geralis <43617260+planetis-m@users.noreply.github.com> | 2024-05-08 23:53:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-08 14:53:29 -0600 |
commit | 63398b11f51529d8a3350853fcf7b7a1cf522b7a (patch) | |
tree | 8a211c0a5667685db72664f05ecf27c4eb8e48a7 /doc | |
parent | d8e1504ed1fd2371f2ab7784c0f4b5f6376325a5 (diff) | |
download | Nim-63398b11f51529d8a3350853fcf7b7a1cf522b7a.tar.gz |
Add a note about the sideeffect pragma (#23543)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual.md | 2 |
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 ---------------- |