Allow returning of temps and ro’s from lv subs
authorFather Chrysostomos <sprout@cpan.org>
Tue, 31 May 2011 03:43:03 +0000 (20:43 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Tue, 31 May 2011 03:43:03 +0000 (20:43 -0700)
commitb724cc14b25929aee44eee20bd26102cceb520b6
tree130ca4b63ef6121587ae7a829822cfb2f03fd022
parentf6a9f8a45e0553298d2b10c734f5826f1ba7730f
Allow returning of temps and ro’s from lv subs

This commit removes the restriction on returning temps and read-only
scalars from lvalue subs that occurs when the sub returns implicitly
(with no ‘return’ statement; ‘return’ has never had that restriction).

It does not actually help pure-Perl lvalue subs much yet, as op.c
still enforces lvalue syntax on the last statement.

But this should fix bug #71172, allowing XS lvalue subs to work under
the debugger.
pp_hot.c
t/op/sub_lval.t