Should C linkage (aka "extern (C)") be the default when using "betterC"?
rempas
rempas at tutanota.com
Sat Mar 5 13:20:55 UTC 2022
On Saturday, 5 March 2022 at 11:34:34 UTC, rikki cattermole wrote:
>
> 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.
Well, actually I didn't thought about that. Yeah, we need a way
to show the linkage in the module so the import system won't
fail. In that case, we either forget what I said or we need to
also implement something like "extern(C) import module_name".
More information about the Digitalmars-d
mailing list