This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Stop lvalue subs from copying read-only scalars
authorFather Chrysostomos <sprout@cpan.org>
Thu, 16 Jun 2011 13:02:23 +0000 (06:02 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 17 Jun 2011 03:17:52 +0000 (20:17 -0700)
commitad37a74e7dc5e204efc84791373a791f142ac7b4
tree26f705e25b49e91c10c0ca0dff9b7c8368c0d041
parent7393165ef277e989fdf63df19ea17698bf83d8db
Stop lvalue subs from copying read-only scalars

They were only doing so in reference context (subroutine args,
for(...)).

Explicit return already worked, but only because I didn’t write it
well.  I’m in the process of trying to merge the two.
pp_hot.c
t/op/sub_lval.t