Re:How I Wrote a Modern C++ Library in Rust
by pritambaral on Monday December 03, 2018 @08:05PM
(#18594875)
> Being able to speak a common ABI doesn't necessarily guarantee that your local ABI has to conform identically to it.
No, but you still need to support the common ABI. E.g., for Rust, that's an easy job, compared to Go.
Being able to speak a common ABI doesn't necessarily guarantee that your local ABI has to conform identically to it. In Rust, for example, you need to add a repr(C) to be able to actually guarantee that the layout conforms to the C ABI. CORBA IDL is something that tried to achieve this kind of capability.