Overriding mixed-in virtual functions
Max Samuha
maxter at i.com.ua
Thu Nov 16 07:02:13 PST 2006
Is there a way to disambiguate the mixed-in virtual functions in a
derived class?
template TFoo
{
void bar()
{
}
}
class Base
{
TFoo A;
TFoo B;
}
class Code : Base
{
override void bar(); // bad idea;
}
Maybe I'm asking for too much, but it would be nice to be able to do
something like this:
class Code : Base
{
override void A.bar()
{
}
override void B.bar()
{
}
}
More information about the Digitalmars-d
mailing list