Graham Barr <[EMAIL PROTECTED]> writes:
>> For the "my Dog $spot" case, that's not an issue, compile time resolution.
>
>And why would an object of type Scotty which inherits from Dog not
>be valid to assign to $spot. And if Scotty overrides some methods
>you have a problem.

We _could_ do the C++ thing and say if you have assigned it to a Dog variable
(akin to casting to a base class) then you get Dog's methods.
But I don't like that at all.

-- 
Nick Ing-Simmons

Reply via email to