Is D so powerfull ??

Daniel Murphy via Digitalmars-d digitalmars-d at
Sun Nov 8 22:27:21 PST 2015

On 9/11/2015 4:26 PM, Jeremy DeHaan wrote:
> What is the correct way to use C++ class instances in D? Can you by
> chance give an example?

extern (C++) class X

extern (C++) void func(X x);

void main(string[] args)
     func(new X());


More information about the Digitalmars-d mailing list