Closures - a none academic explanation that normal programmers can understand!

See this article which I have repeated below:

http://www.javascriptkit.com/javatutors/closures.shtml

It refers to closures in JavaScript but the explanation applies equally to C# delegates.

A closure is the local variables for a function - kept alive after the function has returned, or

A closure is a stack-frame which is not deallocated when the function returns. (as if a ’stack-frame’ were malloc’ed instead of being on the stack!)

Look at the article for the fuller explaination.

http://www.javascriptkit.com/javatutors/closures.shtml

 

Tags: ,

8 Responses to “Closures - a none academic explanation that normal programmers can understand!”

  1. LESLIE Says:

    cause for morning erections

    Buy_generic meds…

  2. NELSON Says:

    information about treatment for leg edema

    Buy_generic drugs…

  3. OSCAR Says:

    prozac overdose and tardive dyskinesia

    Buy_generic meds…

  4. CHRISTIAN Says:

    inpatient drug rehab sanford fl

    Buy_it now…

  5. LANCE Says:

    dogs to detect cancer

    Buy_generic drugs…

  6. JIM Says:

    children during the depression

    Buy_drugs without prescription…

  7. REGINALD Says:

    acyclovir stada cream

    Buy_generic drugs…

  8. BOBBY Says:

    azathioprine@average.cost” rel=”nofollow”>..

    Buynow…

Leave a Reply

You must be logged in to post a comment.