Niko Matsakis wrote:
I haven't explored memory management much in my own tests, but from reading threads etc
Sorry, I forgot to finish this paragraph. I was going to write that "from reading threads I believe that non-boxed values are (conceptually) deallocated when the variables go out of scope (the implementation may internally use reference counters, e.g., for vectors, but this is invisible to the user). Boxed values (@T) are deallocated when their reference count reaches zero."


Niko
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to