[Info-vax] Viable versus ideal programming languages

Arne Vajhøj arne at vajhoej.dk
Thu Mar 24 14:38:04 EDT 2022


On 3/23/2022 2:37 PM, Simon Clubley wrote:
> On 2022-03-22, Bill Gunshannon <bill.gunshannon at gmail.com> wrote:
>> On 3/22/22 14:38, Simon Clubley wrote:
>>>
>>> BTW #2, you can only easily call C++ code from a non-C++ program by
>>> providing a C interface in the C++ library so you are back to using
>>> C as an interface language even with C++...
>>
>> Once again, languages don't define calling sequences, compilers do.
> 
> Even ignoring the other issues, the nature of C++ means that name
> mangling is a real problem if you try to directly call C++ code from
> a non-C++ language.

Disabling name mangling/decorating is a must.

But even though it is called C interface then it does not
have anything to do with C.

Arne




More information about the Info-vax mailing list