Re: [Vala] Support for coroutines in Vala
- From: Luca Dionisi <luca dionisi gmail com>
- To: Serge Hulne <serge hulne gmail com>, vala-list gnome org
- Subject: Re: [Vala] Support for coroutines in Vala
- Date: Wed, 6 Jul 2011 08:42:36 +0200
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]