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

Adam D Ruppe destructionator at gmail.com
Sat Mar 5 11:52:04 UTC 2022


On Saturday, 5 March 2022 at 11:23:05 UTC, 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

There's no benefit to using extern(C). Why would you want it?

> is also necessary when someone wants to allow their library to 
> generate binding for other languages.

This is the *only* reason to use it and this is the same with and 
without betterC.



More information about the Digitalmars-d mailing list