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

Imperatorn johan_forsberg_86 at hotmail.com
Sat Nov 4 10:08:20 UTC 2023


On Saturday, 4 November 2023 at 03:00:49 UTC, Dadoum wrote:
> 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++.

Can you provide an example of exactly what you want to do?


More information about the Digitalmars-d-learn mailing list