develooper Front page | perl.perl5.porters | Postings from June 2012

Re: [perl #89544] closure keeps containing scope alive

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
June 18, 2012 09:58
Subject:
Re: [perl #89544] closure keeps containing scope alive
Message ID:
20120618165847.GB2795@iabyn.com
On Mon, Jun 18, 2012 at 09:40:55AM -0700, Father Chrysostomos via RT wrote:
> I have just been bitten by the same thing.  So I wrote a patch.  It is
> only eight lines (excluding tests).  Ignoring the new flag I added to
> cv.h, it is only three lines of changes.
> 
> Can Dave Mitchell please comment?
> 
> As far as I can tell, CvOUTSIDE is only used during compilation when
> looking up variables.  So at run time we only need it if there is a
> string eval.

Yes, it looks plausible. Is CvOUTSIDE already set to NULL in the non-eval
branch of cv_clone?

-- 
You never really learn to swear until you learn to drive.

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