This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
enterwrite is not OA_DANGEROUS
authorFather Chrysostomos <sprout@cpan.org>
Sat, 8 Nov 2014 21:03:45 +0000 (13:03 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 9 Nov 2014 00:06:44 +0000 (16:06 -0800)
commitfc5ae97dc1cda30f5602828e5ee550c298f86a3f
treee8fa1ebe882cd5b5e8c28a25b2f85f0bef02b857
parente518ea42e3594500d5b65ec487d88325c27f4f87
enterwrite 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.

‘write’ only ever returns a read-only true or false, so temp copies
are not necessary for its sake.
opcode.h
regen/opcodes