Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: (jeffa) Re: Why are closures cool, continued?

by mr.dunstan (Monk)
on Jan 19, 2002 at 03:42 UTC ( #140003=note: print w/ replies, xml ) Need Help??


in reply to Re: (jeffa) Re: Why are closures cool, continued?
in thread Why are closures cool, continued?

Hey! I was thinking something along those lines, just because the variables themselves are not declared -within- the closure ... only near it?

I am thinking this means:
1) There is no spoon, I mean closure.
2) That's a closure, but not an academic example of a closure.
3) Mr. Dunstan, you are mincing words to gain karma.

Zuh? -mr.dunstan


Comment on Re: Re: (jeffa) Re: Why are closures cool, continued?
Re: Re: Re: (jeffa) Re: Why are closures cool, continued?
by perrin (Chancellor) on Jan 19, 2002 at 03:56 UTC
    Sort of. To make a closure, you have to refer to lexical variables that are declared outside of the scope of the current sub. That's the definition of a closure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://140003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2014-10-23 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls