Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Jürg Billeter wrote, On 15/07/08 12:13: > On Tue, 2008-07-15 at 11:11 +0100, Sam Liddicott wrote: > >> * Ali Sabil wrote, On 15/07/08 10:47: >> >>> Signal handler always have the "signal sender" as 1st parameter, in >>> this case it would be the AdvancedSample instance from which the >>>

Re: [Vala] anonymous functions

2008-07-15 Thread Jürg Billeter
On Tue, 2008-07-15 at 11:11 +0100, Sam Liddicott wrote: > * Ali Sabil wrote, On 15/07/08 10:47: > > > > Signal handler always have the "signal sender" as 1st parameter, in > > this case it would be the AdvancedSample instance from which the > > "foo" signal originated. > > > > I proposed the "se

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Ali Sabil wrote, On 15/07/08 10:47: > > > 2008/7/15 Sam Liddicott <[EMAIL PROTECTED] >: > > * Jared Moore wrote, On 15/07/08 10:40: >> >>> And in the advanced example: >>> http://live.gnome.org/Vala/AdvancedSample >>> >>> >>> what does the s signify in >>

Re: [Vala] anonymous functions

2008-07-15 Thread Ali Sabil
2008/7/15 Sam Liddicott <[EMAIL PROTECTED]>: > * Jared Moore wrote, On 15/07/08 10:40: > > > And in the advanced example:http://live.gnome.org/Vala/AdvancedSample > > > what does the s signify in > >this.foo += s => { >stdout.printf ("Lambda expression %s!\n", name); >

Re: [Vala] anonymous functions

2008-07-15 Thread Thijs Vermeir
Sam Liddicott wrote: * Jared Moore wrote, On 15/07/08 10:40: And in the advanced example: http://live.gnome.org/Vala/AdvancedSample what does the s signify in this.foo += s => { stdout.printf ("Lambda expression %s!\n", name); }; 's' is the formal parameter

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Jared Moore wrote, On 15/07/08 10:40: > >> And in the advanced example: >> http://live.gnome.org/Vala/AdvancedSample >> >> >> what does the s signify in >> >>this.foo += s => { >>stdout.printf ("Lambda expression %s!\n", name); >>}; >> >> > > 's' is the formal par

Re: [Vala] anonymous functions

2008-07-15 Thread Jared Moore
On Tue, Jul 15, 2008 at 7:20 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > * Sam Liddicott wrote, On 15/07/08 10:15: >> I find this notation ugly: >> >> notify += (s, p) => { >> stdout.printf("property `%s' has changed!\n", >>

Re: [Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
* Sam Liddicott wrote, On 15/07/08 10:15: > I find this notation ugly: > > notify += (s, p) => { > stdout.printf("property `%s' has changed!\n", > p.name); > }; > > > Is there a reason why the => should be

[Vala] anonymous functions

2008-07-15 Thread Sam Liddicott
I find this notation ugly: notify += (s, p) => { stdout.printf("property `%s' has changed!\n", p.name); }; Is there a reason why the => should be required? notify += (s, p) {