Re:Ask HN: If C++ is so bad, what should game developers use?
by derefr on Sunday October 18, 2009 @04:26PM
(#888761)
Why would you have to lose the libraries? .so files are .so files; it doesn't matter what language they were written in, as long as they expose an API that can be cleanly wrapped by your own language.
Re:Ask HN: If C++ is so bad, what should game developers use?
by nicolas314 on Sunday October 18, 2009 @04:57PM
(#888820)
... and a standard ABI, otherwise you will never be able to link. C++ did not have standard name-mangling conventions until recently, which forced you to use the very same compiler to compile both your libraries and your own code. This is still unfortunately very much a concern with all these legacy systems out there. Your only solution is to expose your API as a C library or distribute your source code.
Perhaps the reason there are no other viable options is because C++ is pretty well suited to the task?