On Fri 26 Apr 2002 at 16:33:49 +0900, Curt Sampson wrote:

> On Fri, 26 Apr 2002, Ian Macdonald wrote:
> 
> > Well, "hello" is of type String, which is the defining class of
> > String#check, so I expected to be able to call it.
> 
> If it's protected, it can only be called by methods inside the
> String class or subclasses. Was the object containing the method
> with this method call a subclass of String?

The protected method was in class String and the method call was made
from an unrelated class, but it was made from an instance variable
that itself was of type String.

Ian
-- 
Ian Macdonald               | YOU PICKED KARL MALDEN'S NOSE!! 
ian / caliban.org             | 
                            | 
                            | 
                            |