extern(C++) multiple inheritence

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 00:34:40 PST 2016


On 19/01/2016 4:10 PM, Manu via Digitalmars-d wrote:
> I'm repeating this here from the depths of my prior whinge thread,
> since this is kind of a new topic.
>
> D's multiple inheritance solution is single-inheritance + interfaces.
> Rightly so, it's a great solution, and this matches what all the C++
> programmers I've ever worked with do anyway. Trouble is, it doesn't
> seem to work with extern(C++) at the moment.
>

Yeah, it never has.  No attempt has ever been made to make it work.

If you want to take a look, it's probably not much more complicated than 
fixing the layout.  The code should mostly be somewhere in todt.c (when 
ClassDeclaration::cpp is non-zero).


More information about the Digitalmars-d mailing list