- Name: perl-asa
- Version: 1.04
- Release: 1
- Epoch:
- Group: Development/Languages/Perl
- License: GPL v1+ or Artistic
- Url: https://metacpan.org/release/asa
- Summary: asa - Lets your class/object say it works like something else
- Architecture: noarch
- Size: 10730
- Distribution: PLD
- Vendor: pld
- Packager:
Description:
Perl 5 doesn't natively support Java-style interfaces, and it doesn't
support Perl 6 style roles either.
You can get both of these things in half a dozen different ways via
various CPAN modules, but they usually require that you buy into
"their way" of implementing your code.
Other have turned to "duck typing".
This is, for the most part, a fairly naive check that says "can you do
this method", under the "if it looks like a duck, and quacks like a
duck, then it must be a duck".
It assumes that if you have a ->quack method, then they will treat you
as a duck, because doing things like adding Duck to your @ISA array
means you are also forced to take their implementation.
- OptFlags: -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -Werror=trampolines -fPIC -march=x86-64
- Cookie:
- Buildhost: ymir-builder
Sources packages:
Other version of this rpm: