Talk:Closure (computer programming): Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
Line 540:
::A closure can be used to associate a function with a set of "private" variables, which persist over several invocations of the function.
Can you tell I was raised on OO? <small>—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/206.83.243.126|206.83.243.126]] ([[User talk:206.83.243.126|talk]]) 20:28, 25 June 2008 (UTC)</small><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
 
:Closures cannot be realized using static variables, which would be shared by all instances of the function. Every instance of the function has its own copy of the lexically scoped variables. — [[User:Tobias Bergemann|Tobias Bergemann]] ([[User talk:Tobias Bergemann|talk]]) 07:13, 26 June 2008 (UTC)
 
== Relate concept to broader semantics of "closure"? ==