Re: [Vala] Multidimensional arrays - help with using them.
- From: lariamat <interflug1 gmx net>
- To: Leonti Bielski <prishelec gmail com>
- Cc: Vala-list <Vala-list gnome org>
- Subject: Re: [Vala] Multidimensional arrays - help with using them.
- Date: Fri, 03 Apr 2009 20:01:18 +0200
Hello
I guess, it is a bug.
There are several issues with multidimensional arrays:
http://bugzilla.gnome.org/show_bug.cgi?id=548428
http://bugzilla.gnome.org/show_bug.cgi?id=548429
http://bugzilla.gnome.org/show_bug.cgi?id=576611
Also using arrays by reference is not working.
Regards,
lariamat
Am Freitag, den 03.04.2009, 18:48 +0200 schrieb Leonti Bielski:
Hello!
I need to use multidimensional array of ints, so this is what I do:
int[][] some_array = {}; //declaring an array of int[]
int[] some = {1,2,3}; // declaring array of ints
some_array += some; // adding this array to 2D array - this works
some_array[0] = some; // this doesn't work
some_array[0] += 2; //this doesn't work
Why those last 2 examples don't work?
What I need to do is to add some values to existing inner array of
multidimensional one (as in second non-working example).
How do I do that?
Leonti
_______________________________________________
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]