{"added":null,"apiVersion":1,"behindSince":null,"buildDepends":[],"categories":["devel","perl5"],"comment":"Support multimethods and function overloading in Perl","compare":"/compare/p5-class-multimethods/index.json","dependentCount":null,"description":"The Class:Multimethod module exports a subroutine (\u0026multimethod) that can\nbe used to declare other subroutines that are dispatched using a algorithm\ndifferent from the normal Perl subroutine or method dispatch mechanism.\n\nNormal Perl subroutines are dispatched by finding the appropriately-named\nsubroutine in the current (or specified) package and calling that. Normal\nPerl methods are dispatched by attempting to find the appropriately-named\nsubroutine in the package into which the invoking object is blessed or,\nfailing that, recursively searching for it in the packages listed in the\nappropriate @ISA arrays.\n\nClass::Multimethods multimethods are dispatched quite differently. The\ndispatch mechanism looks at the classes or types of each argument to the\nmultimethod (by calling ref on each) and determines the \"closest\" matching\nvariant of the multimethod, according to the argument types specified in\nthe variants' definitions (see \"Finding the \"nearest\" multimethod\" for a\ndefinition of \"closest\").","flavors":[],"html":"https://daemonports.org/dragonfly/devel/p5-Class-Multimethods/","kind":"port","lastUpdate":null,"license":["ART10","GPLv1+"],"maintainer":"bofh@FreeBSD.org","name":"p5-Class-Multimethods","newest":true,"newestVersion":"1.701","noVulnData":false,"origin":"devel/p5-Class-Multimethods","otherSystems":[{"maintainer":"bofh@FreeBSD.org","newest":true,"origin":"devel/p5-Class-Multimethods","path":"/devel/p5-Class-Multimethods/","system":"FreeBSD","version":"1.701"},{"maintainer":"The OpenBSD ports mailing-list \u003cports@openbsd.org\u003e","newest":true,"noVulnData":true,"origin":"devel/p5-Class-Multimethods","path":"/openbsd/devel/p5-Class-Multimethods/","system":"OpenBSD","version":"1.701p0"},{"maintainer":"bofh@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Class-Multimethods","path":"","system":"HardenedBSD","version":"1.701"},{"maintainer":"bofh@FreeBSD.org","newest":true,"noVulnData":true,"origin":"devel/p5-Class-Multimethods","path":"","system":"GhostBSD","version":"1.701"}],"packages":null,"pkgName":"p5-Class-Multimethods-1.701","related":null,"repository":"DPorts","requiredBy":["lang/p5-Quantum-Superpositions"],"requiredByCount":1,"runDepends":["lang/perl5.36"],"status":null,"system":"dragonfly","systemLabel":"DragonFly","version":"1.701","versions":null,"vulnerabilities":null,"www":"https://metacpan.org/release/Class-Multimethods"}
