Hi, would you know what is the cost of implementing the double dispatch technique as described on following link? (section "What if I want overloading?")
http://smallcultfollowing.com/babysteps/blog/2012/10/04/refining-traits-slash-impls/ does using traits means making used of something similar to vtable? Or would the compiler optimise those double dispatch to a very optimise code? The motivation is to have multiple implementation of mathematical operators for struct like vector 2d, 3d, matrices, and having them as efficient as possible is important. cheers, Rémi
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
