On Mon, 18 Jun 2001, Doug MacEachern wrote:
> On Mon, 18 Jun 2001, brian moseley wrote:
>
> > sadder to find out
> > that if you specify >1 class with 'use base', isa() only
> > tests positively for the first specified class :/
>
> how do you mean?
in my tests, if i do
package My;
use base qw(Foo Bar Baz);
sub new { ... }
package main;
my $my = My->new();
then of the following three expressions, only the first
evaluates to true:
$my->isa('Foo')
$my->isa('Bar')
$my->isa('Baz')
tangent: do you know of an easy way to print out a class'
inheritance tree?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]