Branch: refs/heads/yves/inc_hook_overload_detection Home: https://github.com/Perl/perl5 Commit: b8614b18656830e644672de3be7614038a894b07 https://github.com/Perl/perl5/commit/b8614b18656830e644672de3be7614038a894b07 Author: Yves Orton <demer...@gmail.com> Date: 2022-12-19 (Mon, 19 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: 2040a4da5d0c6fe781241dddbd38f60968be4079 https://github.com/Perl/perl5/commit/2040a4da5d0c6fe781241dddbd38f60968be4079 Author: Yves Orton <demer...@gmail.com> Date: 2022-12-19 (Mon, 19 Dec 2022) Changed paths: M embed.fnc M embed.h M gv.c M proto.h Log Message: ----------- gv.c - fix amagic_find() to match amagic_call() We want amagic_find() to simulate amagic_call(), to do that we need to support fallback. This copies the fallback logic from amagic_call() into amagic_find(), without the extra stuff required to actually execute the call. Commit: f8cdeae56433ffc5392e6ba35d4ba42a49e263f5 https://github.com/Perl/perl5/commit/f8cdeae56433ffc5392e6ba35d4ba42a49e263f5 Author: Yves Orton <demer...@gmail.com> Date: 2022-12-19 (Mon, 19 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/251449586106...f8cdeae56433