How to call a extern C++ class constructor ?

Ferhat Kurtulmuş aferust at gmail.com
Sat Feb 1 08:21:29 UTC 2020


On Saturday, 1 February 2020 at 08:15:20 UTC, Luhrel wrote:
> Hello there,
>
> I would like to know how can I call a C++ ctor.
>
> [...]

You cannot. 
https://dlang.org/spec/cpp_interface.html#using_cpp_classes_from_d

You must use a factory method like createInstance.


More information about the Digitalmars-d-learn mailing list