Is there a way to capture some variables by-value, and others by-reference? The 'ref' syntax you talked about seemed to be only for the whole argument list, but I might have misunderstood. On Aug 19, 2014 3:07 PM, "Patrick Walton" <[email protected]> wrote:
> On 8/19/14 1:05 PM, Patrick Walton wrote: > >> I've submitted a pull request to make captures in closures *by-value* by >> default. >> > > Oh, here's the pull request: > > https://github.com/rust-lang/rust/pull/16610 > > And here's the relevant RFC: > > https://github.com/rust-lang/rfcs/blob/master/active/0038- > capture-by-value.md > > Related, the unboxed closures RFC: > > https://github.com/rust-lang/rfcs/blob/master/active/0044-closures.md > > Patrick > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
