Yes, yes, and

    let x = box 5;
    let x = ~5;

same thing. It's also more general:

    let x = box(GC) 5;

and lets all of these pointers support placement new, which only ~ did
previously:

    fn foo() -> int { ...

    let x = box foo();

Now that the RFC has been accepted, patches can be written. It'll be a
few days before you'll see the change in code.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to