summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-06-18 16:51:57 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-07-25 23:47:59 -0700
commitc370bd2ea3bafeee0cf4a12391eb41c288c25e2c (patch)
treeac2ed689dea2618ac50f1d312caafcb6bb59a353 /pad.c
parent325e1816dc5cd0a76cbe852add810d33cb1a95fb (diff)
downloadperl-c370bd2ea3bafeee0cf4a12391eb41c288c25e2c.tar.gz
pad.c: Expand pad_push SVf_READONLY explanation
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 2bbf866a04..3586b64f09 100644
--- a/pad.c
+++ b/pad.c
@@ -715,7 +715,10 @@ which will be set in the value SV for the allocated pad entry:
SVf_READONLY constant shared between recursion levels
C<SVf_READONLY> has been supported here only since perl 5.20. To work with
-earlier versions as well, use C<SVf_READONLY|SVs_PADTMP>.
+earlier versions as well, use C<SVf_READONLY|SVs_PADTMP>. C<SVf_READONLY>
+does not cause the SV in the pad slot to be marked read-only, but simply
+tells C<pad_alloc> that it I<will> be made read-only (by the caller), or at
+least should be treated as such.
I<optype> should be an opcode indicating the type of operation that the
pad entry is to support. This doesn't affect operational semantics,