Re: [Vala] Thoughts on asynchronous methods

2009-09-13 Thread Jürg Billeter
On Sat, 2009-09-12 at 16:41 +0200, Jiří Zárevúcky wrote: On 09/12/2009 01:34 PM, Jürg Billeter wrote: 2. purely asynchronous methods There are actions that can't be

Re: [Vala] Thoughts on asynchronous methods

2009-09-13 Thread Jürg Billeter
On Sun, 2009-09-13 at 16:16 +0200, Jan Hudec wrote: On Sat, Sep 12, 2009 at 13:34:27 +0200, Jürg Billeter wrote: Hi Jiří, On Sat, 2009-09-12 at 00:27 +0200, Jiří Zárevúcky wrote: -- 1. yields keyword is far from intuitive

Re: [Vala] Thoughts on asynchronous methods

2009-09-13 Thread Jan Hudec
On Sun, Sep 13, 2009 at 17:40:33 +0200, Jürg Billeter wrote: This should be `yield return i;'. We do not use/need `yield return' for async methods, and I'm planning to add support for `yield return' for generators in Vala the same way as it's used in C#. I don't see a conflict here. Ok. You

Re: [Vala] How to define copy and destroy functions in vapi

2009-09-13 Thread Jan Hudec
On Sun, Sep 13, 2009 at 20:47:22 +0200, Jürg Billeter wrote: On Sun, 2009-09-13 at 16:35 +0200, Jan Hudec wrote: I want to use the GParameter structure (GLib.Parameter in gobject-2.0.vapi). However, vala requires a copy and destroy functions for it and none are defined in the gobject