Re: [Vala] how to declare multi-dimensional arrays in Genie?



 On 7/15/2010 6:23 AM, Nicolas wrote:
Hi,

I'm not an expert nor a "real" developer, but "multidimensional array" seem to be like this:

var myarray = new array of uint64[3, 2] = {{13, 64}, {14, 65}, {15, 66}}
or
myarray : array of uint64[3, 2] = new array of uint64[3, 2] = {{13, 64}, {14, 65}, {15, 66}}

Is this correct ? Someone can confirm ?

Nicolas.



Both of the above multi-dimensional array declarations work as intended, but they do not seem to be global.

Ron




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]