Re: [Vala] anonymous functions



* 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 of the function, just like s and p are
formal parameters in the first example. You could put parentheses
around it if you like, but you don't need to because in that case
there's only one parameter.
  
Thanks.

In that example do you know what s signifies?  - The signal foo doesn't seem to take any parameters.

Sam


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