Branch: refs/heads/davem/sm_overload
  Home:   https://github.com/Perl/perl5
  Commit: 915deba6cfc5cb6b5c538e0c3986e6c9ac9a4c8d
      
https://github.com/Perl/perl5/commit/915deba6cfc5cb6b5c538e0c3986e6c9ac9a4c8d
  Author: David Mitchell <da...@iabyn.com>
  Date:   2023-09-15 (Fri, 15 Sep 2023)

  Changed paths:
    M lib/overload.t
    M pp_ctl.c

  Log Message:
  -----------
  smartmatch: $obj ~~ $scalar: one item in list cxt

My recent commit, v5.39.2-101-g987819ee34,
    "make RC-stack-aware: unwrap startmatch [sic] and misc"
introduced a bug which broke Lingua::EN::Inflexion.

This was because the code path for handling overloaded objects of the
form ($obj ~~ $scalar) was re-pushing the original args onto the stack
before calling the overload method, which was unnecessary. This meant
that in list context, rather than returning the one-element list (Y/N),
it was returning the three-element list ($obj, $scalar, Y/N).

This commit fixes that.


Reply via email to