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