On Fri, Nov 15, 2013 at 11:47 AM, Huon Wilson <[email protected]> wrote:

>  As I understand it, default methods are specialised/monomorphised for
> each type for which the trait is implemented. The only time a virtual call
> ever happens is when one explicitly has a trait object.
>

That would be awesome, if it were true; it is quite a trick to pull that
off when the default methods are implemented in a different crate. Can
someone provide an authoritative answer on this?

Also, C++ faces the problem of providing a single copy of monomorphised
functions (for templates). This is done during the link phase and AFAIK is
one of the causes of C++ links taking a painfully long time. Will Rust
suffer from the same problem?
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to