Why can't we use strings in C++ methods?

Dadoum dadoum at protonmail.com
Sat Nov 4 03:00:49 UTC 2023


I was wondering why C++ linkage forbids strings as arguments 
while we can with the C one.

With C linkage, it's translated to a template that's defined in 
the automatically generated header, but it just doesn't compile 
in C++.


More information about the Digitalmars-d-learn mailing list