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

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 13 02:34:23 PDT 2014


On 2014-09-13 03:36, Manu via Digitalmars-d wrote:

> Yeah, but that's true regardless of C++ interop. It's so easy to make
> mistakes, and so hard to find them when you do. virtual-by-default is
> responsible for most of the silent errors in my code by far.
> Surely, at very least, an extern(C++) class should be final-by-default?

We have showed how you can workaround that with a @virtual UDA. Forcing 
all methods to be either marked "final" or "@virtual".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list