This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allow lvalue subs to return COWs in reference context
authorFather Chrysostomos <sprout@cpan.org>
Sat, 4 Jun 2011 18:38:02 +0000 (11:38 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 4 Jun 2011 21:34:30 +0000 (14:34 -0700)
commita130272381198bb249482fb77a994df28ddaf3bf
treee92e410cfe23ab013f2ee23aae51110e4936988c
parenta8c75f4be1d24785526e639ef648a2b7906a61cc
Allow lvalue subs to return COWs in reference context

(That’s ‘reference’ as in ‘pass by reference’. It applies to
foo(lvalue_func()) and for(lvalue_func()).)

Commit f71f472 took care of scalar context.
Commit a0aa607 came and long and took care of list context, but,
unfortunately, missed reference context.

This commit takes care of that.
pp_hot.c
t/op/sub_lval.t