[Vala] Array.length



I'm have de following code.
public class HelloVala: GLib.Object {
public static int main (string[] args) {
string cadena = "uno,dos,tres,cuatro";
stdout.printf("Cantidad de elementos %i\n",cadena.split(",").length);
return 0;
}
}


compiled with Vala 0.10.0 in ubuntu maverick no warnings, no errors but
the output is not fine at less for me.

Output ---->    Cantidad de elementos 55  








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