Add a note about the sideeffect pragma (#23543)

This commit is contained in:
Antonis Geralis
2024-05-08 23:53:29 +03:00
committed by GitHub
parent d8e1504ed1
commit 63398b11f5

View File

@@ -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
----------------