Re: Implementing multiple inheritance in D

2011-05-10 Thread Jacob Carlborg
On 2011-05-10 10:14, kenji hara wrote: Why not emulate it with interfaces and template mixins? Interfaces? I don't understand what you mean. So please give me a example code. Kenji Hara interface Super { void foo (); } template SuperImpl { void foo () { /* do something */ } } class

Re: Implementing multiple inheritance in D

2011-05-10 Thread kenji hara
> Why not emulate it with interfaces and template mixins? Interfaces? I don't understand what you mean. So please give me a example code. Kenji Hara

Re: Implementing multiple inheritance in D

2011-05-10 Thread kenji hara
Thanks for your comment. > Could you please provide more detail on what you fixed and what the > resulting context is? I posted 'Issue 5973 - alias this is not considered with superclass lookup' for dmd issue. http://d.puremagic.com/issues/show_bug.cgi?id=5973 The issue is that dmd does not consi

Re: Implementing multiple inheritance in D

2011-05-09 Thread Jacob Carlborg
On 2011-05-09 19:43, kenji hara wrote: I have tried to implement multiple inheritance in D. My first idea is binary inheritance tree with using alias this, but current dmd doesn't look alias this on superclasses. So I have tried to fix this behavior. -> https://github.com/9rnsr/dmd/tree/MultiIn

Re: Implementing multiple inheritance in D

2011-05-09 Thread Andrei Alexandrescu
On 5/9/11 12:43 PM, kenji hara wrote: I have tried to implement multiple inheritance in D. My first idea is binary inheritance tree with using alias this, but current dmd doesn't look alias this on superclasses. So I have tried to fix this behavior. -> https://github.com/9rnsr/dmd/tree/MultiInh

Implementing multiple inheritance in D

2011-05-09 Thread kenji hara
I have tried to implement multiple inheritance in D. My first idea is binary inheritance tree with using alias this, but current dmd doesn't look alias this on superclasses. So I have tried to fix this behavior. -> https://github.com/9rnsr/dmd/tree/MultiInheritPatch Result: -> http://ideone.com/i