From 7f581e76d55d16c0f0b5f02b898e703e1bc5c8ff Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 8 Nov 2014 09:39:25 -0800 Subject: Remove OA_DANGEROUS from subst(cont) 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. pp_subst and pp_substcont only push new mortal scalars or read-only values on to the stack. Hence they are not OA_DANGEROUS. --- regen/opcodes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regen') diff --git a/regen/opcodes b/regen/opcodes index 0f2c5f2cbc..f2110cc5f2 100644 --- a/regen/opcodes +++ b/regen/opcodes @@ -86,8 +86,8 @@ regcreset regexp internal reset ck_fun s1 S regcomp regexp compilation ck_null s| S match pattern match (m//) ck_match / qr pattern quote (qr//) ck_match s/ -subst substitution (s///) ck_match dis/ S -substcont substitution iterator ck_null dis| +subst substitution (s///) ck_match is/ S +substcont substitution iterator ck_null is| trans transliteration (tr///) ck_match is" S # y///r transr transliteration (tr///) ck_match is" S -- cgit v1.2.1