Well I solve my problem adding a code line.
public class HelloVala: GLib.Object {
public static int main (string[] args) {
string cadena = uno,dos,tres,cuatro;
string[] arreglar_bug = cadena.split(,);
stdout.printf(Cantidad de elementos %i\n,arreglar_bug.length);
return 0;
}
}
El lun, 06-12-2010
On Tue, 2010-12-07 at 00:34 +0100, Aleksander Wabik wrote:
Seems like https://bugzilla.gnome.org/show_bug.cgi?id=585847 , but it
is claimed to be fixed. Maybe some corner case?
It was fixed in master/0.11, not in 0.10. Unfortunately, the fix does
not apply to 0.10.
Jürg
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
Seems like https://bugzilla.gnome.org/show_bug.cgi?id=585847 , but it
is claimed to be fixed. Maybe some corner case?
best regards,
It seems you found an error in vala.
However, this code works as expected:
{
string cadena = uno,dos,tres,cuatro;
string[] cadenas = cadena.split(,);