Trying to add C++ header generation to dmd

Stefan Koch uplink.coder at googlemail.com
Wed Mar 20 14:37:26 UTC 2019


On Wednesday, 20 March 2019 at 14:26:17 UTC, Gregor Mückl wrote:
> On Wednesday, 20 March 2019 at 10:27:27 UTC, Jacob Carlborg 
> wrote:
>> [...]
>
> Do these fields extend properly to children? Consider the 
> following code:
>
> extern(C++) class C
> {
>   int foo(int a, int b);
> }
>
> Will foo be marked with C++ linkage? The parameters as well? 
> That would simplify the matter a lot.
>
> The pull request does indeed look useful. Thanks!

It _should_ you can test it by looking if the mangle changes from 
the class without extern(C++).


More information about the Digitalmars-d mailing list