develooper Front page | perl.perl5.porters | Postings from February 2013

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

Thread Previous
Julian Bean
February 27, 2013 21:51
[perl #116945] Documentation on $obj->foo::bar(…) missing from 5.16 perlobj
Message ID:
# New Ticket Created by  Julian Bean 
# Please include the string:  [perl #116945]
# in the subject line of all future correspondence about this issue. 
# <URL: >


The documentation for the particular form of method invocation where you specify a package name to begin the dispatch at:


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.



PS Nicholas told me to mention soup.

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About