Talk:Boo (programming language)
Appearance
Q. I don't know Boo but where's the closure in the Windows Forms example?
A. b.Click += do(): MessageBox.Show("you clicked the button!")
I don't think that is a very good example because the example doesn't really show the usage closure. The scope information (i.e. local variables) of the outer block is not utilized in the closure function. Should this be changed to following:
s = "you clicked the button!"; b.Click += do(): MessageBox.show(s);
(Sorry about lexical mistakes. I don't know Boo either)