| |
| | Closure (computer science) -- Facts, Info, and Encyclopedia article (Site not responding. Last check: 2007-10-11) |
 | | Closures are typically implemented with a special ((computer science) the organization of data (and its storage allocations in a computer)) data structure that contains a pointer to the function code, plus a representation of the function's lexical environment (i.e., the set of available variables and their values) at the time when the function was created. |
 | | Closures typically appear in languages that allow functions to be (Click link for more info and facts about "first-class" values) "first-class" values—in other words, such languages allow functions to be passed as arguments, returned from function calls, bound to variable names, etc., just like simpler types such as strings and integers. |
 | | To approximate an actual closure, one can imagine placing all global variables in a single struct, a copy of which can be passed to a function object. |
| www.absoluteastronomy.com /encyclopedia/C/Cl/Closure_(computer_science).htm (719 words) |
|