[Vala] async method and delegate
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: [Vala] async method and delegate
- Date: Mon, 20 Jun 2011 12:20:41 +0800
valac version: 0.13.0
When an async method accepts a delegate as its
argument, I get the warning "copying delegates is discouraged".
Is this intended?
I also get segmentation fault trying to pass
a closure accessing local variables. The closure
works if it doesn't access local vars.
e.g.,
var f = etc;
async_func ( () => { fn (f);} );
will crash trying to access f. Apparently
the closure isn't properly constructed.
Is this a known bug? Any simple workaround?
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]