extern(C) names are being mangled; that's crazy, Walter says I'm crazy

aliak something at something.com
Wed Jul 24 07:33:06 UTC 2019


On Wednesday, 24 July 2019 at 05:03:16 UTC, Manu wrote:
> https://issues.dlang.org/show_bug.cgi?id=20012
>
> I need to know who is the crazy one here?
> I can't believe the idea that extern(C) functions being mangled 
> to
> un-knowable generated names is what any sane user would ever 
> expect.
>
> Surely extern(C) means extern(C)?
>
> I'd like a poll here...

I'm not sure.

If there's an extern(C) in a mixin template, the prime purpose of 
which is to be reusable, does it make sense to instantiate that 
multiple times? Won't there then be multiple C-compatible symbols 
of the same thing, but with different semantics based on the 
context of the mixin template?


More information about the Digitalmars-d mailing list