On 7/9/12 2:44 PM, David Bruant wrote:
As far as I can tell, the visibility control issue is not taken care of.
What it means is that when a trait is composed of other traits, the
instances of these traits have every single method of all the traits.
This doesn't help in defining well-encapsulated objects since it may
leaks implementation details (of "low-level" trait functions)

I have to admit to not having considered this in the design. However, I think it's probably solvable the way we solve it in max/min classes: the individual methods on a trait can be marked module-private.

Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to