Re: [Vala] Implicit lamdas/closures



Christian, when you said:
var value = yield obj.do_something ();
Did you mean that the lamda continuation address be implicitly passed to do_something()?

When you talk of the yield returning a value, do you mean to the caller? So that yield is equivalent to "return" but just doesn't free the local vars?

I'm thinking that if a method uses the yield syntax, that calling method itself would need to be an asynchronous method.

-- Christian



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