Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-UNIVERSAL-can-1.20140328-bp154.1.36 RPM for noarch

From OpenSuSE Leap 15.4 for noarch

Name: perl-UNIVERSAL-can Distribution: SUSE Linux Enterprise 15 SP4
Version: 1.20140328 Vendor: openSUSE
Release: bp154.1.36 Build date: Mon May 9 11:04:01 2022
Group: Development/Libraries/Perl Build host: cloud115
Size: 28377 Source RPM: perl-UNIVERSAL-can-1.20140328-bp154.1.36.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/UNIVERSAL-can/
Summary: work around buggy code calling UNIVERSAL::can() as a function
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.

Some people argue that you must call 'UNIVERSAL::can()' as a function
because you don't know if your proposed invocant is a valid invocant.
That's silly. Use 'blessed()' from the Scalar::Util manpage if you want to
check that the potential invocant is an object or call the method anyway in
an 'eval' block and check for failure (though check the exception
_returned_, as a poorly-written 'can()' method could break Liskov and throw
an exception other than "You can't call a method on this type of
invocant").

Just don't break working code.

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Fri Jul 25 2014 coolo@suse.com
  - updated to 1.20140328
    - eliminated a UNIVERSAL::isa warning
* Tue Mar 18 2014 coolo@suse.com
  - 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
* Tue Mar 11 2014 rschweikert@suse.com
  - fix license string
  - add requiers
* Tue Nov 30 2010 coolo@novell.com
  - switch to perl_requires macro
* Thu Jul 15 2010 pascal.bleser@opensuse.org
  - initial package (1.16)

Files

/usr/lib/perl5/vendor_perl/5.26.1/UNIVERSAL
/usr/lib/perl5/vendor_perl/5.26.1/UNIVERSAL/can.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-UNIVERSAL-can
/usr/share/doc/packages/perl-UNIVERSAL-can/Changes
/usr/share/doc/packages/perl-UNIVERSAL-can/LICENSE
/usr/share/doc/packages/perl-UNIVERSAL-can/README
/usr/share/man/man3/UNIVERSAL::can.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Apr 9 17:06:41 2024