Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-SUPER | Distribution: openSUSE Leap 16.0 |
Version: 1.20190531 | Vendor: openSUSE |
Release: lp160.1.1 | Build date: Sat Jun 1 07:23:16 2019 |
Group: Development/Libraries/Perl | Build host: reproducible |
Size: 30903 | Source RPM: perl-SUPER-1.20190531-lp160.1.1.src.rpm |
Packager: https://bugs.opensuse.org | |
Url: https://metacpan.org/release/SUPER | |
Summary: Control superclass method dispatch |
When subclassing a class, you occasionally want to dispatch control to the superclass -- at least conditionally and temporarily. The Perl syntax for calling your superclass is ugly and unwieldy: $self->SUPER::method(@_); especially when compared to its Ruby equivalent: super; It's even worse in that the normal Perl redispatch mechanism only dispatches to the parent of the class containing the method _at compile time_. That doesn't work very well for mixins and roles. This module provides nicer equivalents, along with the universal method 'super' to determine a class' own superclass. This allows you to do things such as: goto &{$_[0]->super('my_method')}; if you don't like wasting precious stack frames. If you are using roles or mixins or otherwise pulling in methods from other packages that need to dispatch to their super methods, or if you want to pass different arguments to the super method, use the 'SUPER()' method: $self->SUPER( qw( other arguments here ) );
Artistic-1.0 OR GPL-1.0-or-later
* Sat Jun 01 2019 Stephan Kulow <coolo@suse.com> - updated to 1.20190531 see /usr/share/doc/packages/perl-SUPER/Changes 1.20190531 2019-05-31 16:57:30-07:00 America/Los_Angeles - allow main->SUPER::... to work when SUPER.pm is loaded (PR #1, Charles McGarvey) * Sat Aug 08 2015 coolo@suse.com - updated to 1.20141117 see /usr/share/doc/packages/perl-SUPER/Changes 1.20141117 2014-11-17 09:12:01-08:00 America/Los_Angeles - improved export mechanism - removed useless Exporter tests - improved docs (RT #79681) 1.20141116 2014-11-16 14:07:18-08:00 America/Los_Angeles - resolved Test::More changes (RT #97939) * Tue Jun 04 2013 coolo@suse.com - updated to 1.20120705 - resolved PAUSE packaging nit (Oliver Mengué, RT #77110) - converted to dzil * Tue Nov 30 2010 coolo@novell.com - switch to perl_requires macro * Tue Aug 03 2010 chris@computersalat.de - initial package 1.17 * created by cpanspec 1.78
/usr/lib/perl5/vendor_perl/5.38.2/SUPER.pm /usr/share/doc/packages/perl-SUPER /usr/share/doc/packages/perl-SUPER/Changes /usr/share/doc/packages/perl-SUPER/README /usr/share/licenses/perl-SUPER /usr/share/licenses/perl-SUPER/LICENSE /usr/share/man/man3/SUPER.3pm.gz
Generated by rpm2html 1.8.1
Fabrice Bellet, Fri Feb 7 23:57:44 2025