mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
destructors spec: be more precise about temporaries
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user