3 ms·
extern(C++) is what allows the LLVM D compiler to work for example. Binding C++ libraries is quite risky in the sense that the libraries usually aren't meant t
by mhh__ 6y ago
extern(C++) is what allows the LLVM D compiler to work for example.
Binding C++ libraries is quite risky in the sense that the libraries usually aren't meant to be consumed via that API. For that reason it's mainly used (publicly at least, there are things I know that I cannot say) for exposing D to C++ in a sane way (Mangling, vtables, templates, all work, exceptions even!).