D vs C++ classes?

12345swordy alexanderheistermann at gmail.com
Wed Jun 23 17:51:18 UTC 2021


On Wednesday, 23 June 2021 at 17:12:38 UTC, mw wrote:
> On Wednesday, 23 June 2021 at 17:00:00 UTC, Ola Fosheim Grøstad 
> wrote:
>> On Tuesday, 22 June 2021 at 15:14:02 UTC, mw wrote:
>>> Class D : B(disable a), C {} // so using C.a()
>>>
>>> Class D : B, C(disable a) {} // so using B.a()
>>
>> I don't really see the difference between this and forcing a 
>> reimplementation of `a()` that calls A's `a()`, B's `a()` or 
>> both.
>
> There is nothing magic (which is a bad thing ^TM :-) about 
> Eiffel's multiple inheritance.
>
> This demonstrate: MI can be done, and with the compiler's help, 
> it can be done more easily.
>
> That's all.
>
> (I think we both are all arguing *for* MI be included in D, 
> right :-)
Good luck convincing walter on this.

-Alex




More information about the Digitalmars-d mailing list