In article <85256952.0066604A.00 / d54mta01.raleigh.ibm.com>, schneik / us.ibm.com wrote: > > > Hi, > > # "Stuart Zakon" wrote: > # > Can somebody please explain what a closure is within the context of > # > Ruby? (Simple explanation, simple example). > # > # I too would be grateful for such an explanation. "Closure" has become > # trendy in recent years, but I'm humble enough (not really! ;-) to > # admit I haven't a clue what it is. ;-} > > I'll leave the explanations to others, but it might be useful to know that > they sometimes come in handy for use in GUIs as callback functions for > buttons and such. > In that sense, they are functionally equivalent to function objects in Python and anonymous inner classes in Java? Why does the OO world treat these so differently in each language? -- Stuart Zakon Objects by Design http://www.objectsbydesign.com Sent via Deja.com http://www.deja.com/ Before you buy.