libclass-virtual-perl_0.06-3_all.deb


Advertisement

Description

libclass-virtual-perl - Base class for virtual base classes

Distribution: Debian 8 (Jessie)
Repository: Debian Main amd64
Package name: libclass-virtual-perl
Package version: 0.06
Package release: 3
Package architecture: all
Package type: deb
Installed size: 76 B
Download size: 11.87 KB
Official Mirror: ftp.br.debian.org
This is a base class for implementing virtual base classes (what some people call an abstract class). Kinda kooky. It allows you to explicitly declare what methods are virtual and that must be implemented by subclasses. This might seem silly, since your program will halt and catch fire when an unimplemented virtual method is hit anyway, but there's some benefits. The error message is more informative. Instead of the usual "Can't locate object method" error, you'll get one explaining that a virtual method was left unimplemented. Subclass authors can explicitly check to make sure they've implemented all the necessary virtual methods. When used as part of a regression test, it will shield against the virtual method requirements changing out from under the subclass.

Alternatives

    Download

    Source package: libclass-virtual-perl

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install libclass-virtual-perl deb package:
      # sudo apt-get install libclass-virtual-perl

    Files

    • /usr/share/doc/libclass-virtual-perl/changelog.Debian.gz
    • /usr/share/doc/libclass-virtual-perl/changelog.gz
    • /usr/share/doc/libclass-virtual-perl/copyright
    • /usr/share/man/man3/Class::Virtual.3pm.gz
    • /usr/share/man/man3/Class::Virtually::Abstract.3pm.gz
    • /usr/share/perl5/Class/Virtual.pm
    • /usr/share/perl5/Class/Virtually/Abstract.pm

    Changelog

    2011-02-26 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.06-3) unstable; urgency=low * Add dependencies on libclass-isa-perl | perl (<< 5.10.1-13) (closes: #614412) * Update dh compat to 7, and use tiny rules file * Update Standards-Version (no changes) * Switch to source format 3.0 (quilt)

    2008-02-26 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.06-2) unstable; urgency=low * Fix debian/rules rmdir bug (closes: 467686) * Update Standards-Version (no changes) * Standardize debian/watch format * debian/control: add Homepage field * Fix make distclean lintian warning

    2007-06-05 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.06-1) unstable; urgency=low * New upstream release * Update Standards-Version (no changes)

    2005-04-05 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.05-2) unstable; urgency=low * Fix lintian error regarding multiline control fields.

    2005-01-03 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.05-1) unstable; urgency=low * New upstream release. * Add missing build dependency. * Update debian/copyright.

    2004-11-03 - Dominic Hargreaves <dom@earth.li> libclass-virtual-perl (0.04-1) unstable; urgency=low * Initial Release.

    Advertisement
    Advertisement