On Wed, Apr 11, 2012 at 4:26 AM, Peter Ronnquist <peter.ronnqu...@gmail.com> wrote: > Hi, > > I have a question regarding '-' as a prefix to a function argument as > used in the task-perf-word-count.rs test file:
Hi, Peter -- The '-' prefix means that an argument is passed by move, meaning that when control passes to the callee, it becomes deinitialized at the call site. (Obviously, this means the caller has to pass an l-value.) This does not seem to be documented, and should be. Cheers, Tim -- Tim Chevalier * http://catamorphism.org/ * Often in error, never in doubt "Debate is useless when one participant denies the full dignity of the other." -- Eric Berndt _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev