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!
- Re: Pre-RFC - "use warnings" by default for al... Michael G Schwern
- Re: Pre-RFC - "use warnings" by default for al... Tom Christiansen
- Re: Pre-RFC - "use warnings" by default for al... Michael G Schwern
- Re: Pre-RFC - "use warnings" by default for al... Chaim Frenkel
- Re: Pre-RFC - "use warnings" by default for al... Chaim Frenkel
- Re: Pre-RFC - "use warnings" by default for al... Tom Christiansen
- Re: Pre-RFC - "use warnings" by default for al... Michael G Schwern
- Re: Pre-RFC - "use warnings" by default for al... Tom Christiansen
- Re: Pre-RFC - "use warnings" by default for al... Michael G Schwern
- Re: Pre-RFC - "use warnings" by default for al... Piers Cawley
- Re: Pre-RFC - "use warnings" by default for al... Michael G Schwern
- Re: Pre-RFC - "use warnings" by default for al... Bart Lateur
- Re: Pre-RFC - "use warnings" by default for al... Piers Cawley
- Re: Pre-RFC - "use warnings" by default for al... Piers Cawley
