Any chance to avoid monitor field in my class?

Dejan Lekic via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed May 14 03:20:59 PDT 2014


On Tuesday, 13 May 2014 at 17:41:42 UTC, Yuriy wrote:
> On Tuesday, 13 May 2014 at 17:09:01 UTC, Daniel Murphy wrote:
>> What exactly is the mangling problem with extern(C++) classes?
> Can't use D arrays (and strings) as function argument types.
> Can't use D array types as template arguments.
>
> extern (C++) MyClass(T)
> {
>
> }
>
> MyClass!string a; // Mangling error

that should not compile at all. Perhaps you thought extern(C++) 
interface MyClass(T) ?


More information about the Digitalmars-d-learn mailing list