This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
"Closures may be 'bound' to variables within the scope where they are defined"
In addition to that, you can pass a closure as an argument to a method. Then that method can call your closure. This means you can give a method some block of code, and the method can execute that block of code.
I'd recommend reading the Formal Definition on the Groovy site. [ April 10, 2008: Message edited by: Josh Brown ]