A question about C++ interop

YD diyu60607 at yahoo.com
Sat Mar 28 14:44:37 UTC 2020


On Saturday, 28 March 2020 at 07:33:38 UTC, Jacob Carlborg wrote:
> On 2020-03-27 20:17, YD wrote:
>> [...]
>
> Classes in D are always passed by reference. Try dropping the 
> pointer in the `create` method:
>
> static A create();

Thanks! I got it to work for now.


More information about the Digitalmars-d-learn mailing list