3 ms·
It is just as easy to extend any of the scripting languages with C++ as it is with C. SWIG and other systems like XS have built-in support for C++. Even if th
by kingkongrevenge 17y ago
It is just as easy to extend any of the scripting languages with C++ as it is with C. SWIG and other systems like XS have built-in support for C++. Even if that weren't true, you can just make your interface header files 'extern "C"' yet enjoy the superior power of C++ in your implementation files.
There is no reason to favor C over C++ when extending a scripting language.
- wheels 17y agoRight. By "I extended them with C", I meant, "I extended them with a C interface"; the implementation was in C++.