From c9c8fa99cc5342e4f6f16c2bcd306c64c6ac302b Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 26 Jul 2019 07:13:01 +0200 Subject: destructors spec: be more precise about temporaries --- doc/destructors.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1-2-gfad0