auto_inherit, inherit
Andy Armstrong
n at rciss.us
Wed Oct 3 20:17:51 BST 2007
Eric: auto_inherit, inherit. It allows you to chain a bunch of
TAP::Harness subclasses so that each sees its predecessor (rather
than TAP::Harness) as its superclass, right?
So it allows me to install both of
package Foo;
our @ISA = qw( TAP::Harness );
package Bar;
our @ISA = qw( TAP::Harness );
I load Foo and have it subclass T::H and then when I load Bar it
becomes a subclass of Foo rather than TAP::Harness. Is that how it
works?
Shouldn't that mechanism be available more generally? In TAP::Base
for example?
It feels to me as if it's attempting to be a delegation mechanism -
shouldn't we just implement / use delegates?
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list