This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
complement can have OPpTARGET_MY
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Jan 2015 07:16:21 +0000 (23:16 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Jan 2015 14:30:32 +0000 (06:30 -0800)
commit33de0f79097a068801b9c5ffeb855e0b988703f6
tree5e73179707fb0c41660b14b086c86e2f91d9840e
parent90207ba1bd77fb10e2c39594d954b43a9e8ee948
complement can have OPpTARGET_MY

It always reads its argument out the outset and always returns its
target, so there is no reason its target cannot be a lexical.  (The
OPpTARGET_MY optimisation makes $lexical = <some op> have the op
write directly to the lexical; the assignment gets optimised away.)
lib/B/Op_private.pm
opcode.h
regen/opcodes