Re: [Vala] Support for coroutines in Vala



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 hulne gmail com> wrote:
Support for coroutines in Vala:

Has it been dropped ?

otherwise how does one compile examples like:


/////

void foo () yields {

       message ("hello");
       yield;
       message ("world");
}

void main () {
       foo.begin ();
       message ("vala");

       var loop = new MainLoop (null, false);
       loop.run ();
}

/////

_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list





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