Any chance to avoid monitor field in my class?

Daniel Murphy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 16 02:02:17 PDT 2014


"Yuriy"  wrote in message news:klosrzuxwmvilupzzuvm at forum.dlang.org... 

> Ok, i can understand that, but what about this one:
> http://dpaste.dzfl.pl/6a9961e32e6d
> It doesn't use d arrays in function interfaces. Should it work?

Similar problem, D arrays cannot be mangled correctly with C++ mangling.

This compiles:

extern(C++) interface I
{
extern(D):
    int hi();
}
    
extern(C++) class A(T) : I
{
extern(D):
    override int hi()
    {
        return 0;
    }
}

void main()
{
    A!string a;
}


More information about the Digitalmars-d-learn mailing list