:wq

Martin Nowak code at dawg.eu
Thu Jan 2 11:45:30 PST 2014


On 01/02/2014 06:38 PM, Iain Buclaw wrote:
>
> The D frontend will generate the mangled symbol (and its initialiser) as:
>
> _D6mangle18runModuleUnitTestsUZb7Console6opCallMFxAaZSrunModuleUnitTests7Console
>
> _DrunModuleUnitTests7Console6__initZ
>
> Instead of the more desired:
>
> _D6mangle18runModuleUnitTestsFZb7Console6opCallMFxAaZS6mangle18runModuleUnitTestsFZb7Console
>
> _D18runModuleUnitTest7Console6__initZ
>
>
> Is this desirable? It makes demangling such symbols difficult.

I think we should ignore extern(C) when mangling nested symbols.
But we should obey the calling convention.
So according to http://dlang.org/abi.html it's UZb instead of FZb.


More information about the Digitalmars-d mailing list