C++ interop - what to do about long and unsigned long?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 13 12:33:07 PDT 2014


On 9/13/14, 3:45 AM, bearophile wrote:
> Manu:
>
>> Surely, at very least, an extern(C++) class should be final-by-default?
>
> Often the less special cases you have, the less bugs you create. So I
> suggest final to be handled in the same way in both regular and
> extern(C++) classes.

Yah, the C++ interop philosophy is "D language rules, C++ 
implementations". I.e. no C++ overloading, visibility rules, name 
lookup, overriding vs. hiding, etc. etc.

Andrei




More information about the Digitalmars-d mailing list