Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: f2d609912578dcbaf0c2c9a8901724f72bb276c4
      
https://github.com/Perl/perl5/commit/f2d609912578dcbaf0c2c9a8901724f72bb276c4
  Author: Tony Cook <t...@develop-help.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    M embed.fnc
    M embed.h
    M lib/B/Op_private.pm
    M op.c
    M opcode.h
    M pp_hot.c
    M proto.h
    M regen/op_private
    M t/lib/feature/bareword_filehandles

  Log Message:
  -----------
  no bareword_filehandes: don't look up class barewords as handles

This prevents SomeBareword from being looked up as a filehandle:

  no feature "bareword_filehandles";
  SomeBareword->method();

Since "bareword_filehandles" is explicitly about bareword handles,
it does not prevent other string to object/class look ups from
resolving the class as a filehandle, eg for the following:

  "SomeLiteral"->method();
  my $x = "SomeVariable";
  $x->method();

both are looked up as file handles per normal.

Note that in any of these cases, with or without the
bareword_filehandles feature, if the name is a bareword that
has been resolved as a class name since the last time the
stash cache was cleared, it will be resolved as a class name,
not a filehandle.

Fixes #19426

# Conflicts:
#       opcode.h

# Conflicts:
#       opcode.h



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications

Reply via email to