In perl.git, the branch sprout/carp-strval has been created

<https://perl5.git.perl.org/perl.git/commitdiff/16ee47fe0e6db78371331e9f1f5f13f7965cc631?hp=0000000000000000000000000000000000000000>

        at  16ee47fe0e6db78371331e9f1f5f13f7965cc631 (commit)

- Log -----------------------------------------------------------------
commit 16ee47fe0e6db78371331e9f1f5f13f7965cc631
Author: Father Chrysostomos <spr...@cpan.org>
Date:   Mon Feb 26 01:23:53 2018 -0800

    Carp: Avoid run-time mods; StrVal workarounds
    
    Carp needs to avoid loading modules while reporting errors, because
    it may be invoked via $SIG{__DIE__} after a syntax error, when BEGIN
    blocks are forbidden.
    
    Before this commit (as of v5.27.8-360-gc99363a) it was doing just that
    for reference arguments within stack traces.
    
    That means we either need to load overload.pm at start-up so that
    overload::StrVal is already available, or avoid overload::StrVal
    altogether.
    
    It turns out that various versions of overload::StrVal have
    their own problems that prevent Carp from using them (out-
    lined in the comments added to Carp.pm and also described at
    <https://rt.perl.org/Ticket/Display.html?id=132902#txn-1535564>).
    
    So we now follow two approaches:  If overloading.pm is available, use
    that; otherwise, use a hideous workaround inspired by ancient imple-
    entations of overload::StrVal and Scalar::Util::blessed, while avoid-
    ing the bugs in those old versions.

-----------------------------------------------------------------------

-- 
Perl5 Master Repository

Reply via email to