Thread overview
Multiple inheritance D entry on rosettacode.org
Dec 20, 2017
Jean-Louis Leroy
Dec 21, 2017
user1234
Dec 25, 2017
Jean-Louis Leroy
Dec 21, 2017
Simen Kjærås
December 20, 2017
See http://rosettacode.org/wiki/Inheritance/Multiple#D

I feel that the entry is incomplete. I am a supported of full-fledged MI, à la Common Lisp or C++, and the argument that interfaces solve most problems that MI solves, for less of a hassle, leaves me completely cold, even cynical.

However, D is the first language that I have encountered that offers a real, manageable alternative to MI, as described in Andrei's book.

So I think it would be good if someone - Ali? - could expand that entry a bit. I could do it but I am still a rookie in D and I prefer it to be done by someone who is more seasoned than me.

December 21, 2017
On Wednesday, 20 December 2017 at 19:11:19 UTC, Jean-Louis Leroy wrote:
> See http://rosettacode.org/wiki/Inheritance/Multiple#D
>
> I feel that the entry is incomplete. I am a supported of full-fledged MI, à la Common Lisp or C++, and the argument that interfaces solve most problems that MI solves, for less of a hassle, leaves me completely cold, even cynical.
>
> However, D is the first language that I have encountered that offers a real, manageable alternative to MI, as described in Andrei's book.
>
> So I think it would be good if someone - Ali? - could expand that entry a bit. I could do it but I am still a rookie in D and I prefer it to be done by someone who is more seasoned than me.

Do you refer to static inheritance using multiple alias this ? If so, maybe you don't know yet that this feature is not implemented for now.
December 21, 2017
On Wednesday, 20 December 2017 at 19:11:19 UTC, Jean-Louis Leroy wrote:
> See http://rosettacode.org/wiki/Inheritance/Multiple#D
>
> I feel that the entry is incomplete. I am a supported of full-fledged MI, à la Common Lisp or C++, and the argument that interfaces solve most problems that MI solves, for less of a hassle, leaves me completely cold, even cynical.
>
> However, D is the first language that I have encountered that offers a real, manageable alternative to MI, as described in Andrei's book.
>
> So I think it would be good if someone - Ali? - could expand that entry a bit. I could do it but I am still a rookie in D and I prefer it to be done by someone who is more seasoned than me.

I had a go at it, and think I covered most of D's inheritance options. I'd be very happy if other people had a look and cleaned it up, since I'm not entirely happy with how it all ended up.

--
  Simen
December 25, 2017
On Thursday, 21 December 2017 at 04:15:14 UTC, user1234 wrote:
> Do you refer to static inheritance using multiple alias this ? If so, maybe you don't know yet that this feature is not implemented for now.

Yes. I didn't realize it was still science fiction ;-) Ah, good think I passed the baton on this.