develooper Front page | perl.perl5.porters | Postings from October 2014

Re: RVs in pads; lvalue references

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
October 18, 2014 14:34
Subject:
Re: RVs in pads; lvalue references
Message ID:
20141018143422.GA21593@cancer.codesimply.com
* Father Chrysostomos <sprout@cpan.org> [2014-10-08T16:14:23]
> This exposes a bug in the way that closures are handled.  (This exam-
> ple is not a closure example, but closure would exhibit the same bug
> as the principle is the same: multiple pads point to the same SV, but
> aliasing only affects one pad at a time.)

Nice bug, sir.

> If we can't fix this now, is it acceptable to introduced experimen-
> tal lvalue references with this drawback?  my $a; eval { \$a = \$b }
> would be ineffective, as the aliasing would only take place in the
> eval's own pad.

I agree with what Aristotle said:  yes, and probably we throw this bug in the
"blockers for non-experimentalism" list.

-- 
rjbs

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