Re: [Vala] How to initialize a Matrix

2008-07-02 Thread Jürg Billeter
On Thu, 2008-05-15 at 02:20 -0300, Matías De la Puente wrote: > hello all, > > i try to initialize a simple matrix: > > int[,] matrix = new int[,] { {1, 3}, {4, 8} }; We don't support initializers for multi-dimensional arrays right now, however, we certainly want to support it in future versions

[Vala] How to initialize a Matrix

2008-05-14 Thread Matías De la Puente
hello all, i try to initialize a simple matrix: int[,] matrix = new int[,] { {1, 3}, {4, 8} }; like in c# but, valac returns: /home/matias/vala/test.vala:7.36-7.36: error: too many expressions in initializer list for `int' ... ... .. and other stuf... For vector initialization i use: int[] ve