Skip to content

Commit

Permalink
Mark __CLASS__ as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
rwp0 authored and tonycoz committed Jul 11, 2024
1 parent c844eac commit e3d27be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pod/perldiag.pod
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ letter.

=over 4

=item __CLASS__ is experimental

(S experimental::class) This warning is emitted if you use the C<__CLASS__>
keyword of C<use feature 'class'>. This keyword is currently
experimental and its behaviour may change in future releases of Perl.

=item accept() on closed socket %s

(W closed) You tried to do an accept on a closed socket. Did you forget
Expand Down
2 changes: 2 additions & 0 deletions toke.c
Original file line number Diff line number Diff line change
Expand Up @@ -8003,6 +8003,8 @@ yyl_word_or_keyword(pTHX_ char *s, STRLEN len, I32 key, I32 orig_keyword, struct
: newSVOP(OP_RUNCV, 0, &PL_sv_undef));

case KEY___CLASS__:
Perl_ck_warner_d(aTHX_
packWARN(WARN_EXPERIMENTAL__CLASS), "__CLASS__ is experimental");
FUN0(OP_CLASSNAME);

case KEY_AUTOLOAD:
Expand Down

0 comments on commit e3d27be

Please sign in to comment.