summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-08 18:16:02 +0000
committerPaul "LeoNerd" Evans <leonerd@leonerd.org.uk>2023-02-10 14:38:44 +0000
commitd8b29a3430b219e3ab3dae2947a0ff22885c1b5e (patch)
tree61f97639111bca805999c24a256a2b0b037e9c98 /pod
parent07c4c053ee9ee2dac36d7eadd6d2558d94a7a802 (diff)
downloadperl-d8b29a3430b219e3ab3dae2947a0ff22885c1b5e.tar.gz
Field :param attributes, //= and ||= default assignments
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod21
1 files changed, 21 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 85feb2a8a3..d99f79c6e8 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -673,6 +673,12 @@ checking. Alternatively, if you are certain that you're calling the
function correctly, you may put an ampersand before the name to avoid
the warning. See L<perlsub>.
+=item Cannot assign :param(%s) to field %s because that name is already in use
+
+(F) An attempt was made to apply a parameter name to a field, when the name
+is already being used by another field in the same class, or one of its
+parent classes. This would cause a name clash so is not allowed.
+
=item Cannot chr %f
(F) You passed an invalid number (like an infinity or not-a-number) to C<chr>.
@@ -2479,6 +2485,11 @@ PDP-11 or something?
(F) A tied array claimed to have a negative number of elements, which
is not possible.
+=item Field already has a parameter name, cannot add another
+
+(F) A field may have at most one application of the C<:param> attribute to
+assign a parameter name to it; once applied a second one is not allowed.
+
=item Field attribute %s requires a value
(F) You specified an attribute for a field that would require a value to
@@ -4661,6 +4672,11 @@ a backslash before the apostrophe (C<"In $name\'s house">).
Support for the old package separator will be removed in Perl 5.40.
+=item Only scalar fields can take a :param attribute
+
+(F) You tried to apply the C<:param> attribute to an array or hash field.
+Currently this is not permitted.
+
=item %s() on unopened %s
(W unopened) An I/O operation was attempted on a filehandle that was
@@ -5661,6 +5677,11 @@ terminates. You might use ^# instead. See L<perlform>.
search list. So the additional elements in the replacement list
are meaningless.
+=item Required parameter '%s' is missing for %s constructor
+
+(F) You called the constructor for a class that has a required named
+parameter, but did not pass that parameter at all.
+
=item '(*%s' requires a terminating ':' in regex; marked by <-- HERE in m/%s/
(F) You used a construct that needs a colon and pattern argument.