Is D so powerfull ??

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 8 21:16:50 PST 2015


On 9/11/2015 4:05 PM, Jeremy DeHaan wrote:
>
>
> Because that's what this page says:
> http://dlang.org/cpp_interface.html
>

That page is out of date.  Virtual and non-virtual member functions, 
static member functions, and free functions all work since ~2.066.

The biggest missing thing is special member functions, ie 
ctor/dtor/operators.

 > Declaring it as a struct in D code is freaking genius. I wonder if
 > that works across the board with other compilers and OS's though.

Mixing struct/class will only work properly with ABIs that mangle them 
the same way, so it's not portable.


More information about the Digitalmars-d mailing list