Lets your class/object say it works like something else

Edit Package perl-asa
http://search.cpan.org/dist/asa

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".

Refresh
Refresh
Source Files
Filename Size Changed
asa-0.02.tar.gz 0000021482 21 KB
perl-asa.changes 0000000452 452 Bytes
perl-asa.spec 0000001659 1.62 KB
Revision 3 (latest revision is 11)
Stephan Kulow's avatar Stephan Kulow (coolo) committed (revision 3)
siwtch to perl_requires macro
Comments 0
openSUSE Build Service is sponsored by