added a minor note to destroyer.nim

This commit is contained in:
Andreas Rumpf
2017-10-10 11:26:29 +02:00
parent ac3e3cf2b0
commit 083cb00e8d

View File

@@ -39,6 +39,9 @@
## x = y where y is read only once
## is the same as: move(x, y)
##
## Actually the more general rule is: The *last* read of ``y``
## can become a move if ``y`` is the result of a construction.
##
## We also need to keep in mind here that the number of reads is
## control flow dependent:
## let x = foo()