Re: [Vala] interfaces
- From: Thomas Jollans <t jollybox de>
- To: vala-list gnome org
- Subject: Re: [Vala] interfaces
- Date: Fri, 06 Jul 2012 18:39:24 +0200
On 07/06/2012 08:56 AM, andreas graeper wrote:
following compiles without warning/error but at runtime it tells me
(process:6285): GLib-GObject-WARNING **: cannot add interface type
`JJJ' to type `BBB' which does not conform to prerequisite `III'
[snip]
is there actually need to declare all interfaces in class-declaration, i.e.
interface i1 {} ; interface i2:i1 {} ... interface i99:i98 {}
class C : i99,...,i1 {}
???
Yes, you need to declare all interfaces. This is the way Vala and
GObject were designed.
The order in which you list interfaces in the class declaration matters:
class BBB : AAA,III,JJJ {
will work.
This is arguably a (minor) bug. It was reported last year:
https://bugzilla.gnome.org/show_bug.cgi?id=656204
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]