Filewatcher File Search File Search
Catalog
Content Search
» » » » »

libclass-virtual-perl

Base class for virtual base classes

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.

Homepage:
Package version:0.06-2
Architecture:all
Distribution:Debian
Filename:libclass-virtual-perl_0.06-2_all.deb

/usr/share/man/man3/Class::Virtual.3pm.gz

Class::Virtual(3pUser Contributed Perl DocumentatClass::Virtual(3pm)



NAME
       Class::Virtual - Base class for virtual base classes.

SYNOPSIS
         package My::Virtual::Idaho;
         use base qw(Class::Virtual);

         __PACKAGE__->virtual_methods(qw(new foo bar this that));

         package My::Private::Idaho;
         use base qw(My::Virtual::Idaho);

         # Check to make sure
more»

/usr/share/man/man3/Class::Virtually::Abstract.3pm.gz

Class::Virtually:UsertContributed PerClass::Virtually::Abstract(3pm)



NAME
       Class::Virtually::Abstract - Compile-time enforcement of
       Class::Virtual

SYNOPSIS
         package My::Virtual::Idaho;
         use base qw(Class::Virtually::Abstract);

         __PACKAGE__->virtual_methods(qw(new foo bar this that));

         package My::Private::Idaho;
         use base qw(My::Virtual::I
more»

/usr/share/doc/libclass-virtual-perl/changelog.Debian.gz

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

 -- Dominic Hargreaves <dom@earth.li>  Tue, 26 Feb 2008 22:00:46 +0000

libclass-virtual-perl (0.06-1) unstable; urgency=low

  * New upstrea
more»

/usr/share/doc/libclass-virtual-perl/changelog.gz

0.06  Sun Sep  3 18:06:03 EDT 2006
    - Minor test fix for slightly different perldiag. [rt.cpan.or
more»

/usr/share/doc/libclass-virtual-perl/copyright

This is the debian package for the Class:Virtual module.
It was created by Dominic Hargreaves <dom@e
more»

Browse inside libclass-virtual-perl_0.06-2_all.deb

         [DIR]DEBIAN/ (2)  65535+ mirrors
         [DIR]usr/ (1)  65535+ mirrors

Download libclass-virtual-perl_0.06-2_all.deb

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com