It's gotta be a way to do it :( Maybe by using lists or something similar? Leonti
On Fri, Apr 3, 2009 at 8:01 PM, lariamat <[email protected]> wrote: > 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 >> [email protected] >> http://mail.gnome.org/mailman/listinfo/vala-list > > _______________________________________________ Vala-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/vala-list
