On 28/07/13 18:57, Armin Ronacher wrote:
It would be a different thing if we could build things like std::shared_ptr<T> and overload all operators and it integrates well into the rest of the language, but Rust is not built with that in mind.


As I understand it, this is planned[1] as part of the move-GC-to-the-libraries proposal[2]: that is, provide some traits with lang-items (like Eq, Add, Drop, etc.) which, for example, give library pointers the ability to be auto-borrowed to &.

Huon

[1]: http://www.reddit.com/r/rust/comments/1fkhe6/removing_garbage_collection_from_the_rust_language/cab7tv5?context=3 [2]: http://pcwalton.github.io/blog/2013/06/02/removing-garbage-collection-from-the-rust-language/
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to