[Issue 15390] 'abstract' should override final:

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 2 07:55:46 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15390

--- Comment #3 from Infiltrator <lt.infiltrator at gmail.com> ---
(In reply to Manu from comment #2)
> Yeah. It's fine for now, it's just a awkward.
> 
> In this case, the D class is an extern(C++) mirror of the C class, which
> means if I rearrange the virtual functions, the vtables no longer match.
> Obviously I have to take care to not rearrange the order of the virtuals,
> but it's harder to prove this when I can no longer diff the C++ and D code
> (which are almost identical in terms of lines). Since the D class must be
> rearranged, it's much harder to compare it to the C++ version, and I don't
> see a good reason for that nuisance.

The workaround is to just not use ":".  Just abstract or final each function as
you go.  It's not pretty; and gets annoying; but if you care about diffing,
then it's your best bet for now, I think.

--


More information about the Digitalmars-d-bugs mailing list