[Vala] Interfaces and Mixins



Hey,

The following code won't compile unless I create a flush() in Concrete,
but I can't seem to access Entity.flush() at all, any way around this
that doesn't involve making Entity a class?

public interface Flushable : Object
{
    public abstract void flush();
}

public interface Entity : Object, Flushable
{
    public virtual void flush()
    {
        // Do Something
    }
}

public class Concrete : Object, Flushable, Entity
{
    public static int main(string[] args)
    {
        stdout.printf("Hello World\n");
        return 0;
    }
}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]