Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^6: Closure on Closures (beta)

by adrianh (Chancellor)
on Jul 08, 2003 at 06:42 UTC ( #272211=note: print w/ replies, xml ) Need Help??


in reply to Re: Re^4: Closure on Closures (beta)
in thread Closure on Closures

The binding are only retained after the first entry via the goto, at which point, the variable does increment with each successive jump back to that code.

There is a bit of storage in there somewhere - but the original variable binding isn't. That's what I was trying to say.


Comment on Re^6: Closure on Closures (beta)
Re: Re^6: Closure on Closures (beta)
by sauoq (Abbot) on Jul 08, 2003 at 16:39 UTC
    There is a bit of storage in there somewhere - but the original variable binding isn't.

    I agree, it's not the original¹ That's why I said in my original reply to broquaint, "It makes sense, however, to think of it as a closure that is created on the first entry into the bare block via the goto" (original emphasis).

    That's what I was trying to say.

    You're kidding me! You mean we've been saying the same thing this whole time? ;-)

    Actually, PadWalker suggests it is the original storage space but that it gets reinitialized to undef.

    -sauoq
    "My two cents aren't worth a dime.";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2014-10-24 23:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (138 votes), past polls