BSD Ports

devel/p5-Method-Signatures 20170211nb9 NetBSD

Method and function declarations with signatures and no source filter

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
31.6 KiB, 126.4 KiB installed

Description

Method::Signatures provides two new keywords, func and method, so that you can write subroutines with signatures instead of having to spell out my $self = shift; my($thing) = @_

* func is like sub but takes a signature where the prototype would normally go. This takes the place of my($foo, $bar) = @_ and does a whole lot more.

* method is like func but specifically for making methods. It will automatically provide the invocant as $self. No more my $self = shift.

Also allows signatures, very similar to Perl 6 signatures.

Also does type checking, understanding all the types that Moose (or Mouse) would understand.

And it does all this with no source filters.

In the other systems

SystemPortVersion
NetBSDdevel/p5-Method-Signatures20170211nb9
FreeBSDdevel/p5-Method-Signatures20170211
DragonFlydevel/p5-Method-Signatures20170211
HardenedBSDdevel/p5-Method-Signatures20170211
GhostBSDdevel/p5-Method-Signatures20170211

Install

Binary package:

pkgin install p5-Method-Signatures

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Method-Signatures && make install clean

Packages

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

RepositoryVersion
NetBSD 10.1 x86_6420170211nb9
NetBSD 10.1 aarch6420170211nb8
SmartOS / illumos x86_6420170211nb9
macOS 15 arm6420170211nb9

Dependencies

Run dependencies 8

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0