extern(C++) multiple inheritence

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 04:36:43 PST 2016


On 01/19/2016 03:34 AM, Daniel Murphy wrote:
> 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).

Is there an open issue? -- Andrei


More information about the Digitalmars-d mailing list