Re: [Vala] Array.length
- From: Sandino Flores Moreno <tigrux gmail com>
- To: aconsuegra uci cu
- Cc: vala <vala-list gnome org>
- Subject: Re: [Vala] Array.length
- Date: Mon, 6 Dec 2010 17:16:02 -0600
It seems you found an error in vala.
However, this code works as expected:
{
string cadena = "uno,dos,tres,cuatro";
string[] cadenas = cadena.split(",");
stdout.printf("Cantidad de elementos %i\n", cadenas.length);
}
On Mon, Dec 6, 2010 at 4:20 PM, Arley Consuegra Rosello
<aconsuegra uci cu> wrote:
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
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]