digitalmars.D - Multiple inheritance D entry on rosettacode.org
- Jean-Louis Leroy (11/11) Dec 20 2017 See http://rosettacode.org/wiki/Inheritance/Multiple#D
- user1234 (5/17) Dec 20 2017 Do you refer to static inheritance using multiple alias this ? If
- Jean-Louis Leroy (3/6) Dec 25 2017 Yes. I didn't realize it was still science fiction ;-) Ah, good
- Simen =?UTF-8?B?S2rDpnLDpXM=?= (7/19) Dec 21 2017 I had a go at it, and think I covered most of D's inheritance
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
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
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
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