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


in reply to Re: Perl closures: internal details.
in thread Perl closures: internal details.(Updated)

a little light on "guts"

I don't mean to be rude, but I specifically asked about "articles that explain the internal implementation?. Ie "the guts".


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^3: Perl closures: internal details.
by Anonymous Monk on Apr 12, 2012 at 09:59 UTC

    Well, it does both :) the pad (lexpad, lexical pad) is attached to the CV ( Code Value, subroutine ), each scope creates a new pad ... maybe that is not gutsy enough, but http://search.cpan.org/dist/illguts/index.html elaborates more on the structure of the guts -- or were you looking for something different?

      Thanks. That version has moved on considerably to the version I have had bookmarked;

      It is still a little light on words, but the picture's probably worth its thousand.

      I guess I need to look again at B & PadWalker. I've steadfastly refused to look at these seriously till now.

      I did take a peek under their bonnets and was discretely valorous in my conclusion that I didn't need to know. I guess that changed :(


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?