On 18/11/2011 7:37 AM, Marijn Haverbeke wrote:
I'm sorry.
There is now a mode called by-copy, which was needed to make
constructors behave sensibly in the face of proper enforcement of
noncopyability.
Ok. How is it denoted? Your patch looks like it added + and possibly ++
or #? I can't quite tell.
Don't worry too much about passing-style proliferation. I think
by-copy will turn out to supersede by-move. Once we have warnings for
accidental copies of uniques (the code exists, but it won't be
practical to turn it on until vectors become non-unique again), there
won't be much of a reason to use by-move over by-copy.
I'm a bit worried about the proliferation, but I'm hopeful there's
enough redundancy at this point to factor-and-discard one or more of
them, as you say.
I'm confused about by-move going away; the point of by-move is that it
takes ownership in the callee. How do we express "the channel takes
ownership" in the comm system if we eliminate by-move?
-Graydon
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev