Re: [rust-dev] Move-by-default for temporaries?

2011-07-07 Thread Patrick Walton
On 7/7/11 7:03 AM, Marijn Haverbeke wrote: Shall we specify that temporary values, when put into a data structure, are moved, rather than copied? For non-temporary values, this usually not what you want, so we should provide an explicit operator to specify that we want to move those. I was

Re: [rust-dev] Move-by-default for temporaries?

2011-07-07 Thread Marijn Haverbeke
Note that this is needed for resources to be at all usable:    auto x = my_resource(); Currently you can do auto x - my_resource(); ... which is okay. But, as I mentioned, not being able to box them was not okay. ___ Rust-dev mailing list