Michael G Schwern <[EMAIL PROTECTED]> writes:

> 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, 

It is, kinda. I was just wondering vaguely about having 'typed
undefs', which I only thought of in response to the idea of having
undef and uninitialized...

> 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.

Well, I'd argue that your first line should throw an exception. But
that's just me.

-- 
Piers

Reply via email to