www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Multiple inheritance D entry on rosettacode.org

reply Jean-Louis Leroy <jl leroy.nyc> writes:
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.
Dec 20 2017
next sibling parent reply user1234 <user1234 12.fr> writes:
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.
Dec 20 2017
parent Jean-Louis Leroy <jl leroy.nyc> writes:
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.
Dec 25 2017
prev sibling parent Simen =?UTF-8?B?S2rDpnLDpXM=?= <simen.kjaras gmail.com> writes:
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
Dec 21 2017