From d777b41aeb3c64098bb1faa982700de41a4a3bef Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Tue, 13 Aug 2013 13:13:44 -0700 Subject: [PATCH] Correct perlguts docs about PADMY & PADTMP --- pod/perlguts.pod | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 553d914..29a30bf 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1717,9 +1717,13 @@ subroutines)--is compiled. During this time a special anonymous Perl array is created, which is called a scratchpad for the current unit. A scratchpad keeps SVs which are lexicals for the current unit and are -targets for opcodes. One can deduce that an SV lives on a scratchpad +targets for opcodes. A previous version of this document +stated that one can deduce that an SV lives on a scratchpad by looking on its flags: lexicals have C set, and -Is have C set. +Is have C set. But this have never been fully true. +C could be set on a variable that no longer resides in any pad. +While Is do have C set, it can also be set on variables +that have never resided in a pad, but nonetheless act like Is. The correspondence between OPs and Is is not 1-to-1. Different OPs in the compile tree of the unit can use the same target, if this -- 2.7.4