Hacker News new | ask | show | jobs
by throwaway_se099 2779 days ago
> C++ at least has extern "C" going for it, which disables name mangling. Rust doesn't have that

It does, it's called "#[no_mangle]", and together with an extern "C" fn declaration you get a non-mangled function directly callable from C.

1 comments

I see, I admittedly didn't know that. Thanks.