BSD Ports

devel/p5-Class-Multimethods 1.701 FreeBSD

Support multimethods and function overloading in Perl

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
devel, perl5
Package size
25.6 KiB, 59.3 KiB installed

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 @ISA 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 "Finding the "nearest" multimethod" for a definition of "closest").

In the other systems

SystemPortVersion
FreeBSDdevel/p5-Class-Multimethods1.701
OpenBSDdevel/p5-Class-Multimethods1.701p0
DragonFlydevel/p5-Class-Multimethods1.701
HardenedBSDdevel/p5-Class-Multimethods1.701
GhostBSDdevel/p5-Class-Multimethods1.701

Install

Binary package:

pkg install p5-Class-Multimethods

From the ports tree:

cd /usr/ports/devel/p5-Class-Multimethods/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Class-Multimethods>0:devel/p5-Class-Multimethods

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.7011.7011.7011.7011.701
FreeBSD:14:quarterly1.7011.701n/a1.7011.701
FreeBSD:15:latest1.7011.701n/a1.7011.701
FreeBSD:15:quarterly1.7011.701n/an/an/a
FreeBSD:16:latest1.7011.701n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%PERL5_MAN3%%/Class::Multimethods.3.gz
  • %%SITE_PERL%%/Class/Multimethods.pm
distinfo 1
FileSizeSHA256
Class-Multimethods-1.701.tar.gz31394eec283d159bf05fecfcdf72e84ea814c8320022bca6ce7c70760e72231f8758c
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.