On 1/2/13 7:09 PM, Vadim wrote:
Hi,
Is there any expectation that Rust's traits would be binary-compatible
with C++ vtables?   I expect the answer is "no", but just in case...

No, we aren't committing to any stable API.

Reason I'm asking: I am toying with the idea of using Windows COM
components from Rust.  Has anyone here done anything like that in the past?

For Servo we have bindings to Core Foundation on the Mac, which is a COM-like system. We implement the Clone trait and use structs with destructors in order to enforce the proper use of reference counting. You can find the code here:

https://github.com/mozilla-servo/rust-core-foundation

Patrick

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

Reply via email to