As you know, declaring a function extern "C"in C ++ makes its C name coherent, which allows you to use C code.
My question is: are there other programming languages with which you can associate C ++ function names, for example, extern "Lisp"or extern "FORTRAN"?
If not, why? What is the internal structure "C"that makes the constraints?
What are the alternatives?
source
share