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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Class-Multimethods | 1.701 |
| OpenBSD | devel/p5-Class-Multimethods | 1.701p0 |
| DragonFly | devel/p5-Class-Multimethods | 1.701 |
| HardenedBSD | devel/p5-Class-Multimethods | 1.701 |
| GhostBSD | devel/p5-Class-Multimethods | 1.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.701 | 1.701 | 1.701 | 1.701 | 1.701 |
| FreeBSD:14:quarterly | 1.701 | 1.701 | n/a | 1.701 | 1.701 |
| FreeBSD:15:latest | 1.701 | 1.701 | n/a | 1.701 | 1.701 |
| FreeBSD:15:quarterly | 1.701 | 1.701 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.701 | 1.701 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| File | Size | SHA256 |
|---|---|---|
| Class-Multimethods-1.701.tar.gz | 31394 | eec283d159bf05fecfcdf72e84ea814c8320022bca6ce7c70760e72231f8758c |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.