This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Preserve outside pointers of my subs with string eval
authorFather Chrysostomos <sprout@cpan.org>
Tue, 14 Aug 2012 05:56:05 +0000 (22:56 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 16 Sep 2012 05:45:06 +0000 (22:45 -0700)
commit00cc874382d18406b0909f99025f70ca0df1996d
treee5917e2ff4afecfb6bb2d818a744b78171c549f3
parent0afba48f17ab3a5f576fdfaf4e4fc8671acde2bd
Preserve outside pointers of my subs with string eval

The CvHASEVAL flag lets cv_clone know that the clone needs to have its
CvOUTSIDE pointer set, for the sake of string evals’ being able to
look up variables.

It was only being set on anonymous subs.  It should be set for all
clonable subs.  It doesn’t actually hurt to set it on all types of
subs, whether clonable or not, since it has no effect on non-clon-
able subs.
pad.c
t/cmd/lexsub.t