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
> 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
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
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
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
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