develooper Front page | perl.perl5.porters | Postings from October 2016

[perl #116945] Documentation on $obj->foo::bar(…) missing from 5.16 perlobj

Dave Rolsky via RT
October 17, 2016 15:28
[perl #116945] Documentation on $obj->foo::bar(…) missing from 5.16 perlobj
Message ID:
On Tue Feb 26 05:47:17 2013, wrote:
> Hi,
> The documentation for the particular form of method invocation where
> you specify a package name to begin the dispatch at:
> $obj->foo::bar(….)
> was present in perlobj(1) up until 5.14 ( see
> ) with
> an example
> $barney->Critter::display("Height", "Weight");
> It seems that perlobj got rewritten in 5.16 branch and this part of
> the file has changed, completely removing all mention of that feature.
> I think it deserves a mention not least because there are modules on
> CPAN which use this style as their api. Ideally the paragraph would
> also mention that you can start dispatch at an arbitrary package not
> necessarily in the MRO of the object.

Removing this was an oversight on my part when I rewrote the docs. I agree 100% that this should be documented. I'd be happy to review a patch.

via perlbug:  queue: perl5 status: open Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About