http://www.perlmonks.org?node_id=272211


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.

Replies are listed 'Best First'.
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.";