Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-15 Thread Luca Bruno
On Wed, Jul 14, 2010 at 10:06:11PM -0500, Sandino Flores Moreno wrote: Congrats! But... what is a main block? A sort of implicit main(), for scripts you can do something like: print(test); And then run the program by vala yourprogram.vala. -- http://www.debian.org - The Universal

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-15 Thread JM
Congratulations for this release! Can you explain the new GBoxed-based memory management in vala? I know GBoxed is a generic wrapper for C structures, that only needs copy and free functions. And I know that in vala a type get's boxed when you use the '?' operator, like in 'string? s = null;'.

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

2010-07-15 Thread Xavier Bestel
On Thu, 2010-07-15 at 11:52 +0200, Nicolas wrote: Hi Ron, Try this: const myarray : array of uint64 = {13, 64} Isn't this a mono-dimensional array with 2 elements ? Xav ___ vala-list mailing list vala-list@gnome.org

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

2010-07-15 Thread Nicolas
Isn't this a mono-dimensional array with 2 elements ? Xav 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

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-15 Thread Andrés G. Aragoneses
El 15/07/10 00:02, Bob Hazard escribió: Woo hoo nearly 1.0! Make sure you leave enough room. Enlightenment 17 is at version 0.16.999.49898 and I believe the kernel started using letters :) Hey Bob. I would say, that the next vala release can perfectly be 0.10.0. Thus, the closeness to 1.0 is

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-15 Thread Abderrahim Kitouni
Hi, في خ، 15-07-2010 عند 10:01 +0200 ، كتب JM: Congratulations for this release! Can you explain the new GBoxed-based memory management in vala? I know GBoxed is a generic wrapper for C structures, that only needs copy and free functions. AFAICT (correct me if

Re: [Vala] [ANNOUNCE] Vala 0.9.3 - Compiler for the GObject type system

2010-07-15 Thread Jürg Billeter
On Thu, 2010-07-15 at 10:01 +0200, JM wrote: Congratulations for this release! Can you explain the new GBoxed-based memory management in vala? I know GBoxed is a generic wrapper for C structures, that only needs copy and free functions. And I know that in vala a type get's boxed when you

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

2010-07-15 Thread Ron Murawski
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},

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

2010-07-15 Thread Robert Powell
Both of the above multi-dimensional array declarations work as intended, but they do not seem to be global. Is this what you are trying to do? int [,] arr; public void main(string [] args) { arr = new int[3,4]; arr[0,0] = 1; arr[1,1] = 2; stderr.printf(%d:%d\n, arr[0,0],

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

2010-07-15 Thread Jamie McCracken
On Thu, 2010-07-15 at 18:34 -0400, Ron Murawski wrote: On 7/15/2010 1:45 PM, Robert Powell wrote: Both of the above multi-dimensional array declarations work as intended, but they do not seem to be global. Is this what you are trying to do? int [,] arr; public void main(string []

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

2010-07-15 Thread Ron Murawski
On 7/15/2010 6:50 PM, Jamie McCracken wrote: On Thu, 2010-07-15 at 18:34 -0400, Ron Murawski wrote: On 7/15/2010 1:45 PM, Robert Powell wrote: Both of the above multi-dimensional array declarations work as intended, but they do not seem to be global. Is this what you are trying to do? int

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

2010-07-15 Thread Jamie McCracken
On Thu, 2010-07-15 at 19:26 -0400, Ron Murawski wrote: I wanted the multi-dimensional array in the data area, not on the stack. In C: int my_array[64][13]; int main(int argc, **char argv) { my_array[7][7] = 7; // more stuff return 0; } my_array is allocated on the