3 ms·
Zig's C and C++ FFI is basically based on embedding clang, which seems the only way for its level of FFI in case of C++. For C it is much more doable to make a
by lifthrasiir 5y ago
Zig's C and C++ FFI is basically based on embedding clang, which seems the only way for its level of FFI in case of C++. For C it is much more doable to make a new C compiler specifically for FFI.
- WalterBright 5y agoD's ImportC also allows the C code to be extended with D-ish features, like forward references, compile time function execution, and modules.