Hack around people calling UNIVERSAL::can() as a function

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

The UNIVERSAL class provides a few default methods so that all objects can use
them. Object orientation allows programmers to override these methods in
subclasses to provide more specific and appropriate behavior.

Some authors call methods in the UNIVERSAL class on potential invocants as
functions, bypassing any possible overriding. This is wrong and you should not
do it. Unfortunately, not everyone heeds this warning and their bad code can
break your good code.

This module replaces UNIVERSAL::can() with a method that checks to see if the
first argument is a valid invocant has its own can() method. If so, it gives a
warning and calls the overridden method, working around buggy code. Otherwise,
everything works as you might expect.

Refresh
Refresh
Source Files
Filename Size Changed
UNIVERSAL-can-1.16.tar.gz 0000007684 7.5 KB
UNIVERSAL-can-1.20110617.tar.gz 0000014297 14 KB
UNIVERSAL-can-1.20140124.tar.gz 0000014556 14.2 KB
perl-UNIVERSAL-can.changes 0000000851 851 Bytes
perl-UNIVERSAL-can.spec 0000002917 2.85 KB
Revision 6 (latest revision is 10)
Stephan Kulow's avatar Stephan Kulow (coolo) committed (revision 6)
- updated to 1.20140124
   - bumped minimum Perl version to 5.8, as working around 5.6 bugs is not
     worth the trouble
   - fixed RT #63771, buggy triggering of overloading for blessed invocants
     (found and fixed by Norbert Buchmüller)
   - migrated to Dist::Zilla
Comments 0
openSUSE Build Service is sponsored by