Lesson learned today: the order in which you declare you implement interfaces in vala matters. So, if you've created a collection that implements Iterable and Traversable from Gee, you need to list Traversable first.
It sort of makes sense, but the compiler doesn't warn you, and when I go to execute code that lists them in the other order, it complains about Traversable not being implemented though I know it is.
At run-time:
GLib-GObject-WARNING **: cannot add interface type `GeeIterable' to type `GXmlDomChildNodeList' which does not conform to prerequisite `GeeTraversable'
I should file a bug or offer a patch perhaps to add some sort of warning? The run time system cares about the order.
Keine Kommentare:
Kommentar veröffentlichen