diff options
author | Andrey Makarov <ph.makarov@gmail.com> | 2021-05-06 11:58:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-06 10:58:01 +0200 |
commit | 436af88d8c436265c751bbbc0d76ef42aab0cdf0 (patch) | |
tree | 608eedcc3573b342ecd0eed2a16e9a129924660f /doc/destructors.rst | |
parent | 706562f661e49d06f63a1283525275fb70bb7073 (diff) | |
download | Nim-436af88d8c436265c751bbbc0d76ef42aab0cdf0.tar.gz |
follow-up #17837: add `Console` for interactive sessions (#17930)
* follow-up #17837: add `Console` for interactive sessions * fix Latex
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r-- | doc/destructors.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst index c93fcabe1..3cd4cd925 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -1,5 +1,3 @@ -.. default-role:: code - ================================== Nim Destructors and Move Semantics ================================== @@ -7,6 +5,8 @@ Nim Destructors and Move Semantics :Authors: Andreas Rumpf :Version: |nimversion| +.. include:: rstcommon.rst +.. default-role:: nim .. contents:: @@ -273,7 +273,7 @@ Sink parameter inference ======================== The current implementation can do a limited form of sink parameter -inference. But it has to be enabled via `--sinkInference:on`, either +inference. But it has to be enabled via `--sinkInference:on`:option:, either on the command line or via a `push` pragma. To enable it for a section of code, one can @@ -496,10 +496,11 @@ for expressions of type `lent T` or of type `var T`. The .cursor annotation ====================== -Under the `--gc:arc|orc` modes Nim's `ref` type is implemented via the same runtime -"hooks" and thus via reference counting. This means that cyclic structures cannot be freed -immediately (`--gc:orc` ships with a cycle collector). With the `.cursor` annotation -one can break up cycles declaratively: +Under the `--gc:arc|orc`:option: modes Nim's `ref` type is implemented +via the same runtime "hooks" and thus via reference counting. +This means that cyclic structures cannot be freed +immediately (`--gc:orc`:option: ships with a cycle collector). +With the `.cursor` annotation one can break up cycles declaratively: .. code-block:: nim |