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.
> In Vala does obj == obj simply test identity like '==' would in Java?
>
For reference types, yes (the only exception is strings, which do
string equality). For value types (which include structs in vala),
it's a value equality.

HTH,
Abderrahim
_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to