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

From:
Dave Rolsky via RT
Date:
October 17, 2016 15:28
Subject:

Message ID:
rt-4.0.24-5291-1476718107-815.116945-15-0@perl.org
On Tue Feb 26 05:47:17 2013, jules@jellybean.co.uk 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
> https://github.com/mirrors/perl/blob/maint-5.14/pod/perlobj.pod ) 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
https://rt.perl.org/Ticket/Display.html?id=116945



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About