On 03/31/2012 10:05 AM, Andrej Mitrovic wrote:
One issue with the new wxWidgets 2.9.x series is that there seem to be
more multiply-inherited classes than before

A bit more complete snippet.

interface Foo
{
    void doFoo();
}
// Foo implementation
mixin template FooMixin()
{
    alias typeof(this) thisClass;

    void doFoo()
    {
        thisClass.init();
    }
}

class Bar
{
    void doFoo() {}
}

class Baz :Bar, Foo
{
    alias Bar.doFoo BarFoo;

    mixin FooMixin;

    void init() {}

}

hth

Reply via email to