2009/11/20 Abderrahim Kitouni <[email protected]>: > Hi, > > 2009/11/19 Laszlo Pandy <[email protected]>: >> Very good tutorial! One question I don't think is answered is about >> the virtual methods of Objects in Java. It mentions that there is no >> virtual toString() for all objects, but it says nothing about how to >> override the equality test in Vala, like reimplementing Java's >> equals(Object obj) method in your class. How can this be done in Vala? > I think something like this is planned for vala 1.2, but I cannot find > it on bugzilla. I found it [1] (see Jürg's comment), and it seems it's for 2.x. So I think the best way is to just define your own equal method and use it.
HTH, Abderrahim [1] https://bugzilla.gnome.org/show_bug.cgi?id=518604 _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
