Jump to content

Talk:Boo (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 128.214.173.238 (talk) at 12:53, 10 February 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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)