Re: [Vala] [ANNOUNCE] Vala 0.7.6 - Compiler for the GObject type system



Jürg Billeter wrote:
This is correct, there is only one instance of the variable `a' and that
instance is captured by the closure. You can also change the value of
`a' inside the closure and this will affect the outer method as well as
there is only one instance of this variable.

You're right, I have tried it now with C# and it's the same behaviour.

This was a bug in how delegates were returned from methods. This is now
fixed in master.

Thanks!


Best regards,

Frederik



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