Re: [Vala] What is "traversable" and how to use it !!! [since libgee 0.7]



Travesable is an interfase and a requisite for Iterable interface witch you
must implement.

Is not the best but you can open the files at Gee's source code to know the
methods to implement. Gee 0.8 adds lot of default implementations and have
abstract classes to make more easy to implement new collections as for
LIBGDA's vala extensions.

I'm implementing a new GLib.List class as a Gee collection, hope it will be
approbed into Gee classes.
El sep 27, 2012 3:24 a.m., <raum no-log org> escribió:

Hello,

I've compiled Libgee 0.8 (as usual with MingW under Windows ;)) and now
when I try to compile my project, I've got an error... =___= (greeeaat)

objects.vala:257.1-257.55: error: cObjectsMap: some prerequisites
(`Gee.Traversable') are not met
public class cObject : Object, Iterable<cObject> {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Do you have a sample of code for this ? Because, due of lack of
documentation, I didn't understand exactly why now I need to use
"traversable".

Thanks :)

Raum

ps: to compile libgee, If you followed my previous messages
export GLIB_CFLAGS='-I /mingw/lib/glib-2.0/include -I
/mingw/include/glib-2.0 -I /mingw/include/glib-2.0/gobject '
export GLIB_LIBS='-lglib-2.0 -llibgobject-2.0'


_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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