summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-09-20 14:49:04 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-10 21:54:05 -0700
commit4fec880468dad87517895b935b19a8d51e98b5a6 (patch)
tree3f154e38897ec820739ddb30a3b57e99a893eff4 /scope.c
parentc0d680ed1b5f1cf4e78338bc96d26e636cbc60d6 (diff)
downloadperl-4fec880468dad87517895b935b19a8d51e98b5a6.tar.gz
First stab at lexical scalar aliases
No \my$x= yet. Only my $x; \$x =.... It does not work properly with variables closed over from outside; hence, all the to-do tests fail still, since they do the assign- ment in evals. But this much works: $ ./miniperl -Ilib -Mfeature=:all -e 'my $m; \$m = \$n; warn \$m; warn \$n' Lvalue references are experimental at -e line 1. SCALAR(0x7fa04b805510) at -e line 1. SCALAR(0x7fa04b805510) at -e line 1.
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scope.c b/scope.c
index 9fd2546b2d..0f819e7c9d 100644
--- a/scope.c
+++ b/scope.c
@@ -1007,8 +1007,6 @@ Perl_leave_scope(pTHX_ I32 base)
(SvREFCNT(sv) <= 1 && !SvOBJECT(sv)) ? "clear" : "abandon"
));
- assert(SvPADMY(sv));
-
/* Can clear pad variable in place? */
if (SvREFCNT(sv) == 1 && !SvOBJECT(sv)) {