Thanks for your replies.
I will continue my digging in the language.

On Tue, Apr 2, 2013 at 10:26 PM, Daniel Micay <[email protected]> wrote:

> On Mon, Apr 1, 2013 at 2:16 PM, Pierre Louis Aublin
> <[email protected]> wrote:
> >
> > 3) The different pointer types seem to be implicitly converted. What
> happens
> > when a conversion occurs? For instance if I convert a managed box to an
> > owned box, the pointed variable is moved from the private heap to the
> > exchange heap?
> >
>
> I don't think there's any implicit conversion between ~ and @. You can
> move, copy or swap out of an owned box and either copy or swap out of
> a managed box. There's no way to directly convert between them at a
> language level.
>
> The documentation shouldn't be using the terms "exchange heap" and
> "local heap" because it's not accurate. There's currently not really a
> separate heap strategy at all, and when there is, owned pointers
> containing managed boxes will be on the task-local heap.
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to