diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2020-03-18 16:57:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 16:57:34 +0100 |
commit | fb641483f0e2ed974b89d629ea5ec28e5e6145ce (patch) | |
tree | 8f74544adb04d46a7946554e2fd73e6bbc417ff3 /doc/destructors.rst | |
parent | a96842aaeb46ddf3990f9632259a26cb451c5b80 (diff) | |
download | Nim-fb641483f0e2ed974b89d629ea5ec28e5e6145ce.tar.gz |
arc optimizations (#13325)
* scope based destructors * handle 'or' and 'and' expressions properly, see the new test arc/tcontrolflow.nim * make this branch mergable, logic is disabled for now
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r-- | doc/destructors.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst index 6d3ed00dd..0d4a6c985 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -451,6 +451,7 @@ for expressions of type ``lent T`` or of type ``var T``. result = Tree(kids: kids) # converted into: `=sink`(result.kids, kids); wasMoved(kids) + `=destroy`(kids) proc `[]`*(x: Tree; i: int): lent Tree = result = x.kids[i] |