On 3/12/14 3:29 AM, Nathan Myers wrote:
Given such primitives, esoteric constructions like virtual inheritance
could be left to ambitious users.

We did sketch a macro-based solution for this that was basically what you said. It involved an `rtti!()` macro that allowed construction of vtables per object and structs, as well as an `family!()` macro that allowed you to downcast and upcast. But it was very complex, with lots of moving parts. At the end of the day you need some things to be built in to the language if you want them to be nice.

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to