Re: [Vala] Vala & concerned issues !!



2009/11/20 Abderrahim Kitouni <a kitouni gmail com>:
Hi,

2009/11/19 Laszlo Pandy <laszlok2 gmail com>:
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



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