[Vala] interface prerequistes



Hi list,

is it okay that the order of interfaces plays a significant role in
Vala?

Simple example:
--------------------------------------
interface IfaceA : Object {
    public abstract void method_a ();
}

interface IfaceB : Object, IfaceA {
    public abstract void method_b ();
}

class Demo : Object, IfaceA, IfaceB {
    public void method_a () { }
    public void method_b () { }
}
--------------------------------------
This works like a charm, !but!:

--------------------------------------
interface IfaceA : Object {
    public abstract void method_a ();
}

interface IfaceB : Object, IfaceA {
    public abstract void method_b ();
}

class Demo : Object, IfaceB, IfaceA {
    public void method_a () { }
    public void method_b () { }
}
--------------------------------------
i only reordered the interfaces in the implementation. The compiler
compiles without any error. But if i want to run this programm it exits
with a Interface Implementation failure. Any idea?

Greetings

-- 
Günther Wutz
<admin wutzara de>
Student der University of Applied Science
Allgemeine Informatik




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