summaryrefslogtreecommitdiff
path: root/pad.c
diff options
context:
space:
mode:
authorAbigail <abigail@abigail.be>2017-01-14 18:25:48 +0100
committerAbigail <abigail@abigail.be>2017-01-16 19:18:16 +0100
commit9840d1d66ee1648f6d7fb1554101450158cfee16 (patch)
treefad38c50cb323f98d4ef0a7bf40bd63c7904cbef /pad.c
parent24ca458667a908883f2aad18ea28ad1a5637534e (diff)
downloadperl-9840d1d66ee1648f6d7fb1554101450158cfee16.tar.gz
Deprecating the modifyable variables in constants by 5.32.
It was already deprecated, but we're now adding a version number.
Diffstat (limited to 'pad.c')
-rw-r--r--pad.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pad.c b/pad.c
index 6d2d008b0f..5bbb07a092 100644
--- a/pad.c
+++ b/pad.c
@@ -2159,7 +2159,8 @@ S_cv_clone_pad(pTHX_ CV *proto, CV *cv, CV *outside, HV *cloned,
"Constants from lexical "
"variables potentially "
"modified elsewhere are "
- "deprecated");
+ "deprecated. This will not "
+ "be allowed in Perl 5.32");
/* We *copy* the lexical variable, and donate the
copy to newCONSTSUB. Yes, this is ugly, and
should be killed. We need to do this for the