D vs C++ classes?
jmh530
john.michael.hall at gmail.com
Tue Jun 22 16:13:11 UTC 2021
On Tuesday, 22 June 2021 at 15:14:02 UTC, mw wrote:
> [snip]
> Not at all. First it's by the programmer's design (if s/he
> chooses to do it in this way).
>
> Second: to solve diamond problem, undefine / rename a feature
> usually happen in D:
>
> Class D : B(disable a), C {} // so using C.a()
>
> Class D : B, C(disable a) {} // so using B.a()
>
>
> Note: this resolution in D, make A B C D all usable, non of
> them is abstract.
>
>
> Please check my github example.
> [snip]
Thanks for the reply.
The only github example I could find was in Eiffel
https://github.com/mingwugmail/dlang_tour/tree/master/eiffel/mi
Is that the right one?
More information about the Digitalmars-d
mailing list