2 ms·
you are right about cxx, I made this comment with C FFI in mind. and for that, Zig couldn't have better integration. AFAIK there is no simple way to interface
by cztomsik 4y ago
you are right about cxx, I made this comment with C FFI in mind. and for that, Zig couldn't have better integration.
AFAIK there is no simple way to interface with C++ from Zig, you either have C headers or you write a bit of C++ to export what you need and then you're back in the game.
Or you flip it on its head and use zig as C++ compiler and call your zig-parts from C++ but I have no experience with this, I think bun does this.