Interface inheritance simplification

2013-07-13 Thread JS
It would be nice if this is possible: interface A // : gets inserted by the mixin { mixin sometemplate!B; // Is able to make A extend B } or interface A : mixin sometemplate!B { // methods get inserted by the template } instead of interface A : B { mixin sometemplate!B; } which

Re: Interface inheritance

2010-12-12 Thread Mandeep Singh Brar
But that idea would not work in APIs like JDBC for example (something i was trying to immitate partly). PreparedStatement has method setInt(int, int) while CallableStatement has method setInt(string,int). It is not possible to compile CallableStatement.setInt(int,int) without casting or putting in

Re: Interface inheritance

2010-12-12 Thread Adam Burton
Mandeep Singh Brar wrote: > I just posted a bug on the bugs list about problems in compiling the > following code using dmd, but realized that there might be some > inheritance feature that i might now be aware of. Can you please let me > know if i am missing something in the below code. > > impo

Interface inheritance

2010-12-12 Thread Mandeep Singh Brar
I just posted a bug on the bugs list about problems in compiling the following code using dmd, but realized that there might be some inheritance feature that i might now be aware of. Can you please let me know if i am missing something in the below code. import std.stdio; interface A { p