Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by mr.dunstan (Monk)
on Jan 19, 2002 at 03:42 UTC ( [id://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?

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://140003]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-25 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found