On Fri, Sep 08, 2000 at 04:15:24PM +0100, Piers Cawley wrote:
>     my Dog $spot;
>     print defined($spot) ? 'defined' : 'undefined'; # undefined
>     print $spot->isa('Dog') ? 'Dog' : 'not dog';    # Dog;

That sounds unrelated to this conversation, but I think isa() should
continue to represent the class of the object, not the type.

Consider:

    my Dog $spot = Cat->new;
    print $spot->isa('Dog') ? 'Dog' : 'not dog';

Currently, $spot is not a dog.  It should probably remain that way.

-- 

Michael G Schwern      http://www.pobox.com/~schwern/      [EMAIL PROTECTED]
Just Another Stupid Consultant                      Perl6 Kwalitee Ashuranse
MORONS!

Reply via email to