summaryrefslogtreecommitdiff
path: root/regen
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@semiotic.systems>2021-04-04 16:16:11 -0400
committerRicardo Signes <rjbs@users.noreply.github.com>2021-04-04 17:24:27 -0400
commitd23c9e49d142b3a749181a63a9f694a97ab76185 (patch)
treebcf6146bfde5a5f6057d2a5d1eecf6082d392711 /regen
parentd15aa6aefc4bcac559a726b31795a77d0a599149 (diff)
downloadperl-d23c9e49d142b3a749181a63a9f694a97ab76185.tar.gz
feature.pl: document all experiments identically
...and add "this is an experiment" to "isa"
Diffstat (limited to 'regen')
-rwxr-xr-xregen/feature.pl27
1 files changed, 15 insertions, 12 deletions
diff --git a/regen/feature.pl b/regen/feature.pl
index a7522aa037..03fb775819 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -566,9 +566,9 @@ This feature is available starting with Perl 5.10.
=head2 The 'switch' feature
-B<WARNING>: Because the L<smartmatch operator|perlop/"Smartmatch Operator"> is
-experimental, Perl will warn when you use this feature, unless you have
-explicitly disabled the warning:
+B<WARNING>: This feature is still experimental and the implementation may
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
no warnings "experimental::smartmatch";
@@ -695,9 +695,8 @@ regardless of what feature declarations are in scope.
=head2 The 'signatures' feature
B<WARNING>: This feature is still experimental and the implementation may
-change in future versions of Perl. For this reason, Perl will
-warn when you use the feature, unless you have explicitly disabled the
-warning:
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
no warnings "experimental::signatures";
@@ -715,9 +714,8 @@ This feature is available from Perl 5.20 onwards.
=head2 The 'refaliasing' feature
B<WARNING>: This feature is still experimental and the implementation may
-change in future versions of Perl. For this reason, Perl will
-warn when you use the feature, unless you have explicitly disabled the
-warning:
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
no warnings "experimental::refaliasing";
@@ -752,9 +750,8 @@ category.
=head2 The 'declared_refs' feature
B<WARNING>: This feature is still experimental and the implementation may
-change in future versions of Perl. For this reason, Perl will
-warn when you use the feature, unless you have explicitly disabled the
-warning:
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
no warnings "experimental::declared_refs";
@@ -767,6 +764,12 @@ This feature is available from Perl 5.26 onwards.
=head2 The 'isa' feature
+B<WARNING>: This feature is still experimental and the implementation may
+change or be removed in future versions of Perl. For this reason, Perl will
+warn when you use the feature, unless you have explicitly disabled the warning:
+
+ no warnings "experimental::isa";
+
This allows the use of the C<isa> infix operator, which tests whether the
scalar given by the left operand is an object of the class given by the
right operand. See L<perlop/Class Instance Operator> for more details.