|Name : perl-Class-Multimethods
|Version : 1.700.0
||Vendor : Mandriva
|Release : 1mdv2010.1
||Date : 2010-05-06 14:15:14
|Group : Development/Perl
||Source RPM : perl-Class-Multimethods-1.700.0-1mdv2010.1.src.rpm
|Size : 0.05 MB
|Packager : Michael Scherer < misc_mandriva_org>
|Summary : A multiple dispatch mechanism for Perl
|Description : |
The Class:Multimethod module exports a subroutine (&multimethod) that can
be used to declare other subroutines that are dispatched using a algorithm
different from the normal Perl subroutine or method dispatch mechanism.
Normal Perl subroutines are dispatched by finding the appropriately-named
subroutine in the current (or specified) package and calling that. Normal
Perl methods are dispatched by attempting to find the appropriately-named
subroutine in the package into which the invoking object is blessed or,
failing that, recursively searching for it in the packages listed in the
appropriate \'AATTISA\' arrays.
Class::Multimethods multimethods are dispatched quite differently. The
dispatch mechanism looks at the classes or types of each argument to the
multimethod (by calling \'ref\' on each) and determines the \"closest\"
matching _variant_ of the multimethod, according to the argument types
specified in the variants\' definitions (see the Finding the \"nearest\"
multimethod manpage for a definition of \"closest\").
RPM found in directory: /mirror/carroll.cac.psu.edu/pub/linux/distributions/mandrakelinux/official/2010.1/i586/media/contrib/release