diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-07-26 07:13:01 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-07-27 14:01:28 +0200 |
commit | c9c8fa99cc5342e4f6f16c2bcd306c64c6ac302b (patch) | |
tree | b4e0bb639865fd8727a0ca3cab9b65018982621e /doc/destructors.rst | |
parent | b9c15371a3278cafa962c09693d126ae388dca2b (diff) | |
download | Nim-c9c8fa99cc5342e4f6f16c2bcd306c64c6ac302b.tar.gz |
destructors spec: be more precise about temporaries
Diffstat (limited to 'doc/destructors.rst')
-rw-r--r-- | doc/destructors.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/destructors.rst b/doc/destructors.rst index a9e25f6ec..f17bdadf7 100644 --- a/doc/destructors.rst +++ b/doc/destructors.rst @@ -326,7 +326,9 @@ not destroyed at the scope exit, but at the proc exit. f(...) ------------------------ (function-call) - (let tmp = f(...); tmp) + (let tmp; + bitwiseCopy tmp, f(...); + tmp) finally: `=destroy`(tmp) |