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

Re: RVs in pads; lvalue references

Thread Previous | Thread Next
Ricardo Signes
October 18, 2014 14:34
Re: RVs in pads; lvalue references
Message ID:
* Father Chrysostomos <> [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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About