Re:Rust for C++ programmers – part 4: unique pointers
by cmrx64 on Tuesday April 29, 2014 @03:38AM
(#7665529)
If you're creating a new ~T in a loop, it will be freed after each iteration of the loop (ie, when the block ends). Witness for yourself: https://gist.github.com/cmr/f80c0a58e5b90021bb35
[ Parent
| on HN ]
There are no comments on this comment yet.