develooper Front page | perl.perl5.porters | Postings from March 2001

Re: CvOUTSIDE

Thread Previous | Thread Next
From:
Alan Burlison
Date:
March 5, 2001 01:05
Subject:
Re: CvOUTSIDE
Message ID:
3AA356A7.90520791@uk.sun.com
Gurusamy Sarathy wrote:

> It is used for closure cloning.
> 
> Every CV that references lexicals from its outer lexical scopes needs
> to be able to access that outer scope's scratchpad at run time (via
> pp_anonsub(), cv_clone2() and pad_findlex()) to capture the lexicals
> that are visible at the time the cloning happens.  In fact, all CVs need
> to have this whether they have outer lexicals referenced in them or
> not, given that eval"" requires visibility of the outer lexical scopes.

Pads - *shiver*  here be dragons...  Anyway, thanks for the explanation.

Alan Burlison

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About