Nope. It's carefully designed so that pointer types only form the subtyping 
relationship, eliminating this problem.

BTW, I was thinking maybe we should just rename this feature to "structural 
constraints" to avoid the "ewww, OO" reactions.

Ziad Hatahet <[email protected]> wrote:
>If structural inheritance were to be implemented, would we have the
>slicing
>problem in Rust, as it happens in C++?
>
>[1] http://en.wikipedia.org/wiki/Object_slicing
>[2]
>http://stackoverflow.com/questions/274626/what-is-the-slicing-problem-in-c/
>
>
>--
>Ziad

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to