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
| System | Port | Version |
|---|---|---|
| NetBSD | devel/p5-Method-Signatures | 20170211nb9 |
| FreeBSD | devel/p5-Method-Signatures | 20170211 |
| DragonFly | devel/p5-Method-Signatures | 20170211 |
| HardenedBSD | devel/p5-Method-Signatures | 20170211 |
| GhostBSD | devel/p5-Method-Signatures | 20170211 |
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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 20170211nb9 |
| NetBSD 10.1 aarch64 | 20170211nb8 |
| SmartOS / illumos x86_64 | 20170211nb9 |
| macOS 15 arm64 | 20170211nb9 |
Dependencies
Run dependencies 8
No port depends on this one.