| 1 |
Source: libclass-virtual-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Dominic Hargreaves <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: libcarp-assert-perl <!nocheck>, |
| 9 |
libclass-data-inheritable-perl <!nocheck>, |
| 10 |
libclass-isa-perl <!nocheck>, |
| 11 |
perl |
| 12 |
Standards-Version: 4.6.1 |
| 13 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libclass-virtual-perl |
| 14 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libclass-virtual-perl.git |
| 15 |
Homepage: https://metacpan.org/release/Class-Virtual |
| 16 |
Rules-Requires-Root: no |
| 17 |
|
| 18 |
Package: libclass-virtual-perl |
| 19 |
Architecture: all |
| 20 |
Depends: ${misc:Depends}, |
| 21 |
${perl:Depends}, |
| 22 |
libcarp-assert-perl, |
| 23 |
libclass-data-inheritable-perl, |
| 24 |
libclass-isa-perl |
| 25 |
Description: base class for virtual base classes |
| 26 |
Class::Virtual is a base class for implementing virtual base classes (what |
| 27 |
some people call an abstract class). Kinda kooky. It allows you to explicitly |
| 28 |
declare what methods are virtual and that must be implemented by subclasses. |
| 29 |
This might seem silly, since your program will halt and catch fire when an |
| 30 |
unimplemented virtual method is hit anyway, but there's some benefits. |
| 31 |
. |
| 32 |
The error message is more informative. Instead of the usual "Can't locate |
| 33 |
object method" error, you'll get one explaining that a virtual method was |
| 34 |
left unimplemented. |
| 35 |
. |
| 36 |
Subclass authors can explicitly check to make sure they've implemented all |
| 37 |
the necessary virtual methods. When used as part of a regression test, it |
| 38 |
will shield against the virtual method requirements changing out from under |
| 39 |
the subclass. |