Should C linkage (aka "extern (C)") be the default when using "betterC"?

rikki cattermole rikki at cattermole.co.nz
Sat Mar 5 11:34:34 UTC 2022


On 06/03/2022 12:23 AM, rempas wrote:
> Am I the only one that things this way? If I'm not wrong, other than 
> some (mostly runtime) advantages that "betterC" offers, It is also 
> necessary when someone wants to allow their library to generate binding 
> for other languages.

Its certainly a more unique way of thinking.

After all, why would you lose function overloading for no good reason?

Not to mention, now if you build your code as -betterC, but use it in a 
non-betterC program, boom linker errors due to mismatching mangling.


More information about the Digitalmars-d mailing list