Branch: refs/heads/yves/inc_hook_overload_detection
  Home:   https://github.com/Perl/perl5
  Commit: dc23c6065626035a10697f6030e3ff19e5a5e3ba
      
https://github.com/Perl/perl5/commit/dc23c6065626035a10697f6030e3ff19e5a5e3ba
  Author: Yves Orton <demer...@gmail.com>
  Date:   2022-12-18 (Sun, 18 Dec 2022)

  Changed paths:
    M perl.h
    M pod/perldelta.pod
    M pod/perlguts.pod
    M sv.c
    M t/porting/diag.t

  Log Message:
  -----------
  sv.c - add support for HvNAMEf and HvNAMEf_QUOTEDPREFIX formats

They are similar to SVf and SVf_QUOTEDPREFIX but take an HV * argument
and use HvNAME() and related macros to extract the string. This is
helpful as it makes constructing error messages from a stash (HV *)
easier. The next patch makes use of HvNAMEf_QUOTEDPREFIX.


  Commit: 25144958610625a465e9e25cb4f03c49047fa775
      
https://github.com/Perl/perl5/commit/25144958610625a465e9e25cb4f03c49047fa775
  Author: Yves Orton <demer...@gmail.com>
  Date:   2022-12-18 (Sun, 18 Dec 2022)

  Changed paths:
    M pod/perldelta.pod
    M pod/perldiag.pod
    M pp_ctl.c
    M t/op/require_errors.t

  Log Message:
  -----------
  pp_ctl.c - Check if refs have overloads in @INC

If an object in @INC doesnt have a hook method, and it isnt a CODE ref
then check if it has string overloading, if it does not then die with a
helpful message, otherwise call the overload

This uses the nice new amagic_find() function.


Compare: https://github.com/Perl/perl5/compare/dc23c6065626%5E...251449586106

Reply via email to