Re: [Vala] Thoughts on asynchronous methods

2009-09-16 Thread Jürg Billeter
On Wed, 2009-09-16 at 13:34 +1000, Magentus wrote: On Sun, 13 Sep 2009 17:40:33 +0200, Jürg Billeter j...@bitron.ch 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

Re: [Vala] Thoughts on asynchronous methods

2009-09-15 Thread Magentus
On Sun, 13 Sep 2009 17:40:33 +0200, Jürg Billeter j...@bitron.ch 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

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] Thoughts on asynchronous methods

2009-09-12 Thread Jürg Billeter
Hi Jiří, On Sat, 2009-09-12 at 00:27 +0200, Jiří Zárevúcky wrote: I did some thinking on the subject of asynchronous (aka yielding) methods. I'd like to share and discuss some of my ideas here. -- 1. yields keyword is far from