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 a las 15:51 -0800, Anatol Pomozov escribió:
> Hi
>
> 2010/12/6 Aleksander Wabik <[email protected]>:
> > Seems like https://bugzilla.gnome.org/show_bug.cgi?id=585847 , but it
> > is claimed to be fixed. Maybe some corner case?
>
> Or regression. I see that commit 5226feafef5 that fixes the given
> issue does not have any unit tests.
>
> > 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(",");
> >> stdout.printf("Cantidad de elementos %i\n", cadenas.length);
> >>}
> >>
> >>
> >>
> >>On Mon, Dec 6, 2010 at 4:20 PM, Arley Consuegra Rosello
> >><[email protected]> 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
> >>> [email protected]
> >>> http://mail.gnome.org/mailman/listinfo/vala-list
> >>>
> >>_______________________________________________
> >>vala-list mailing list
> >>[email protected]
> >>http://mail.gnome.org/mailman/listinfo/vala-list
> >
> >
> > --
> > Mój klucz publiczny o identyfikatorze 1024D/E12C5A4C znajduje się na
> > serwerze hkp://keys.gnupg.net
> >
> > My public key with signature 1024D/E12C5A4C is on the server
> > hkp://keys.gnupg.net
> >
> > _______________________________________________
> > vala-list mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/vala-list
> >
> >
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list