2 ms·
Zig has C++ FFI
by melony 5y ago
Zig has C++ FFI
- lifthrasiir 5y agoZig'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.