On 12/31/13 6:26 AM, Oren Ben-Kiki wrote:
The point is that sometimes you really *don't* want the closure to be send-able, because you want it to access from the surrounding context both owned pointers (-> be called-once) _and also_ borrowed pointers (-> be stack-allocated). This is vital for some use cases and is impossible today (ok, possible by painfully wrapping a cell around each owned pointer and taking its value in the stack closure).
You can do all of that with unboxed closures. Patrick _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev