This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
exec is not OA_DANGEROUS
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 21:05:28 +0000 (13:05 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Nov 2014 00:06:44 +0000 (16:06 -0800)
commit1062548aa8a260190f89d970b88ab8ffe0bb35b2
tree02a44ed9145c3a8473d2e7c920b966e6e640e7c6
parentfc5ae97dc1cda30f5602828e5ee550c298f86a3f
exec is not OA_DANGEROUS

OA_DANGEROUS indicates that temporary copies may need to be made in
list assignment, to handle things like:

($a, $b) = ($b, $a);

In other words, an op type is flagged with OA_DANGEROUS if its return
values could occur elsewhere on the stack.

When exec fails, it only ever returns a target unused elsewhere, so it
does not necessitate temp copies in list assignment.
opcode.h
regen/opcodes