Sie befinden sich hier: eisfair / Pack-Eis
News News News

Navigation

Content

perl-universal-can (perl)

Perl - UNIVERSAL::can (Offizielles Paket)

Version: 3.4.0 Status: stable Release Datum: 2024-01-19
Autor: the eisfair team, team(at)eisfair(dot)org
Internal Program Version: perl-universal-can  1.20140328.5.38.2

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.

http://search.cpan.org/dist/UNIVERSAL-can
SHA256-Prüfsumme: d9a46c51b2e8cf9b13c73435b23696f89ef83d849e16df489112dda1c5dd312b
Größe: 3 KByte
Info-Datei: https://www.pack-eis.de/dl.php?l=62573/perl-universal-can.tar.bz2.info
Benötigte Pakete: perl 3.4.0