[Vala] Array.length
- From: Arley Consuegra Rosello <aconsuegra uci cu>
- To: vala <vala-list gnome org>
- Subject: [Vala] Array.length
- Date: Mon, 06 Dec 2010 17:20:53 -0500
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]