>________________________________
> From: Jonathan S. Shapiro <[email protected]>
>
>
>Or  if you want the exact semantics of Rust unique pointers, why not just 
>stack allocate, because every statically sized owned object can be stack 
>allocated!: 
>
>[snip]
>
>
>Speaking of which, a proper polymorphic region system subsumes borrowed 
>pointers as well. So, now, can somebody explain to me again what the unique 
>pointer concept is actually good for?
>
>As I understood it, unique pointers could be transferred to another task, 
>transferring the ownership of the allocation (and recursively all things 
>pointed to by it) to the other task:


http://static.rust-lang.org/doc/rust.html#communication-between-tasks



Alex
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to