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(",");
> 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
signature.asc
Description: PGP signature
_______________________________________________ vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
