Re: [Vala] Support for coroutines in Vala

2011-07-06 Thread Luca Dionisi
Replace first line with: async void foo () { and compile with --pkg gio-2.0 On Wed, Jul 6, 2011 at 3:42 AM, Serge Hulne serge.hu...@gmail.com wrote: Support for coroutines in Vala: Has it been dropped ? otherwise how does one compile examples like: / void foo () yields {        

Re: [Vala] Support for coroutines in Vala

2011-07-06 Thread Luca Bruno
On Wed, Jul 06, 2011 at 03:42:09AM +0200, Serge Hulne wrote: Support for coroutines in Vala: http://live.gnome.org/Vala/Tutorial#Asynchronous_Methods -- http://www.debian.org - The Universal Operating System ___ vala-list mailing list

Re: [Vala] Support for coroutines in Vala

2011-07-06 Thread Serge Hulne
If you need something more flexible then GIO asynchronous functions, look at GNU Pth. http://www.gnu.org/software/pth/ If pth is what you need, I have written a vapi for it. Let me know. Yes please, I am interested ! Basically the only feature of Go I miss in Vala are the Goroutines, i.e.

Re: [Vala] Support for coroutines in Vala

2011-07-06 Thread Luca Dionisi
On Wed, Jul 6, 2011 at 9:21 AM, Serge Hulne serge.hu...@gmail.com wrote: If pth is what you need, I have written a vapi for it. Let me know. Yes please, I am interested ! I'll send you in private. ___ vala-list mailing list vala-list@gnome.org

Re: [Vala] Support for coroutines in Vala

2011-07-06 Thread pancake
why dont share it? http://hg.youterm.com/vala-vapis On 07/06/11 09:35, Luca Dionisi wrote: On Wed, Jul 6, 2011 at 9:21 AM, Serge Hulneserge.hu...@gmail.com wrote: If pth is what you need, I have written a vapi for it. Let me know. Yes please, I am interested ! I'll send you in private.

[Vala] [ANNOUNCE] Vala 0.13.1 - Compiler for the GObject type system

2011-07-06 Thread Jürg Billeter
We are pleased to announce version 0.13.1 of Vala, a compiler for the GObject type system. Vala 0.13.1 is now available for download at: http://download.gnome.org/sources/vala/0.13/ Changes since 0.13.0 * Many bug fixes and binding updates. Vala is a new programming language that aims to

Re: [Vala] Why the temporary variables in the C code are usefull ?

2011-07-06 Thread pancake
The compiler can optimize this. Those temp vars are just to make the vala compiler simpler.. It would be great if vala could do some minor optimization steps before spitting C. But if you compile with -O2 it shouldnt be something to worry. On 06/07/2011, at 18:51, Jacques-Pascal Deplaix

Re: [Vala] Why the temporary variables in the C code are usefull ?

2011-07-06 Thread Jacques-Pascal Deplaix
On 07/06/2011 08:15 PM, pancake wrote: The compiler can optimize this. Those temp vars are just to make the vala compiler simpler.. It would be great if vala could do some minor optimization steps before spitting C. But if you compile with -O2 it shouldnt be something to worry. Ok, fine...