Why extern variables and functions within template/struct/class have a D mangling

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed May 8 02:22:38 PDT 2013


On 5/8/13, Dicebot <m.strashun at gmail.com> wrote:
> On Wednesday, 8 May 2013 at 09:09:34 UTC, Andrej Mitrovic wrote:
>> ...
>
> Suck code is invalid in C++ and for a good reason. I'd really
> expect D to refuse to compile extern(C) functions it can't
> possibly mangle correctly.
>

Sorry, I forgot I was actually thinking about *static* extern(C)
functions. I'm not sure about methods.


More information about the Digitalmars-d mailing list