./devel/p5-Class-Base, Useful base class for deriving other modules

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.09nb7, Package name: p5-Class-Base-0.09nb7, Maintainer: pkgsrc-users

This module implements a simple base class from which other modules
can be derived, thereby inheriting a number of useful methods such
as new(), init(), params(), clone(), error() and debug().

For a number of years, I found myself re-writing this module for
practically every Perl project of any significant size. Or rather,
I would copy the module from the last project and perform a global
search and replace to change the names. Each time it got a little
more polished and eventually, I decided to Do The Right Thing and
release it as a module in it's own right.

It doesn't pretend to be an all-encompassing solution for every
kind of object creation problem you might encounter. In fact, it
only supports blessed hash references that are created using the
popular, but by no means universal convention of calling new() with
a list or reference to a hash array of named parameters. Constructor
failure is indicated by returning undef and setting the $ERROR
package variable in the module's class to contain a relevant message
(which you can also fetch by calling error() as a class method).


Required to run:
[lang/perl5] [devel/p5-Clone]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

Filesize: 32.81 KB

Version history: (Expand)


CVS history: (Expand)


   2023-07-06 11:43:03 by Thomas Klausner | Files touched by this commit (2483)
Log message:
*: recursive bump for perl 5.38
   2022-06-28 13:38:00 by Thomas Klausner | Files touched by this commit (3952)
Log message:
*: recursive bump for perl 5.36
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message:
*: recursive bump for perl 5.34
   2020-08-31 20:13:29 by Thomas Klausner | Files touched by this commit (3631)
Log message:
*: bump PKGREVISION for perl-5.32.
   2019-08-11 15:25:21 by Thomas Klausner | Files touched by this commit (3557)
Log message:
Bump PKGREVISIONs for perl 5.30.0
   2019-06-30 22:17:50 by Nia Alarie | Files touched by this commit (1816)
Log message:
Update packages using a search.cpan.org HOMEPAGE to metacpan.org.

The former now redirects to the latter.

This covers the most simple cases where http://search.cpan.org/dist/name
can be changed to https://metacpan.org/release/name.

Reviewed by hand to hopefully make sure no unwanted changes sneak in.