Re: [Vala] Implicit lamdas/closures
- From: "Christian Hergert" <christian hergert gmail com>
- To: "Jürg Billeter" <j bitron ch>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Implicit lamdas/closures
- Date: Sat, 1 Nov 2008 18:01:32 -0700
On Sat, Nov 1, 2008 at 4:14 PM, Jürg Billeter
<j bitron ch> wrote:
On Sat, 2008-11-01 at 22:42 +0000, Sam Liddicott wrote:
> It'll be a couple of weeks at least before I can look at it.
>
> Jürg, are you intending to allow the callbacks to pass in additional variables?
The plan is to allow access to all local variables using closures.
> Are you planning to base it around any particular async framework?
The generated C code uses GAsyncReadyCallback and GAsyncResult from
GLib/GIO.
> Will callbacks be able to continue a loop where it left off?
Yes, this will be possible. It will also be possible to surround async
calls with a try/catch block.
It would be useful if delegates could through exceptions here too. Particularly when you do async calls that take a delegate.
-- Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]