Re: [Vala] Some thoughts about multidimensional arrays

2009-09-16 Thread Frederik Sdun
* Jürg Billeter [16.09.2009 22:48]: > Hi, > > On Wed, 2009-09-16 at 20:03 +0200, Frederik Sdun wrote: > > I wrote some code using multidimensional arrays yesterday and realized > > it is not perfect, especially if you use strings. > > > > Every array uses an additional _length and and _size

Re: [Vala] Some thoughts about multidimensional arrays

2009-09-16 Thread Jürg Billeter
Hi, On Wed, 2009-09-16 at 20:03 +0200, Frederik Sdun wrote: > I wrote some code using multidimensional arrays yesterday and realized > it is not perfect, especially if you use strings. > > Every array uses an additional _length and and _size gint. size is the > allocated size, length the act

[Vala] Some thoughts about multidimensional arrays

2009-09-16 Thread Frederik Sdun
Hi, I wrote some code using multidimensional arrays yesterday and realized it is not perfect, especially if you use strings. Every array uses an additional _length and and _size gint. size is the allocated size, length the actual use fields. Because every array uses such data, why not pack t