[Vala] Ref parameters to async methods
- From: Nor Jaidi Tuah <norjaidi tuah ubd edu bn>
- To: <vala-list gnome org>
- Subject: [Vala] Ref parameters to async methods
- Date: Sat, 23 Jul 2011 15:22:52 +0800
Is there any technical reason why
reference parameters are not supported for async methods?
My work around to this is simply to replace
async void foo (ref X x) // cannot compile
with
async void foo (ClosureX cx)
where Closure is
class ClosureX {
X x;
}
But why can't the compiler do this for us?
I must be missing something.
hand
Nor Jaidi Tuah
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]