12 ms·
Does the D compiler know how to mangle/demangle C++ names? Do you have to write some kind of D header file for foreign C++ functions? Otherwise, how would D ev
by amelius 9y ago
Does the D compiler know how to mangle/demangle C++ names?
Do you have to write some kind of D header file for foreign C++ functions? Otherwise, how would D even know about the existence of e.g. vector<int>::push?
- biotronic 9y agohttps://dlang.org/spec/cpp_interface.html#cpp-templates https://dlang.org/spec/cpp_interface.html#cpp-templates You will need to recreate the C++ function definitions in D and mark them extern(C++), but that's about it.