This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Let rv2cv-hook CVs’ protos participate in method intuition
authorFather Chrysostomos <sprout@cpan.org>
Sun, 8 Jul 2012 06:22:33 +0000 (23:22 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 8 Jul 2012 07:24:10 +0000 (00:24 -0700)
commitaca88b25b97396281535603636c5ed7d71892870
tree7766dbfd0a02e272b330efb991e922564ab62fb2
parentfbdb18e8529417cf1965f573b88257ad568cd9aa
Let rv2cv-hook CVs’ protos participate in method intuition

Commit 39c012bc2fc2f1cf wasn’t enough.  If a subroutine has a proto-
type beginning with * then its name is treated as a sub call, even
when followed by a package name:

    {package Foo}
    sub Foo {}
    foo Foo; # Foo->foo

    {package Bar}
    sub bar (*) {}
    bar Bar; # bar(Bar)

This was not applying to subs looked up via rv2cv hooks.
ext/XS-APItest/t/sym-hook.t
toke.c