MethodFinder bug ?

Marcus Denker denker at iam.unibe.ch
Wed Aug 17 14:15:27 UTC 2005


Am 17.08.2005 um 14:16 schrieb Damien Cassou:

> Hi,
>
> I  have just  created a  method in  string that  test if  a  string is
> capitalized or not.
>
> isCapitalized
>   ^ (self at: 1) = (self at: 1) asUppercase
>
> I dont understand why the method finder does not find it:
>
> MethodFinder methodFor: #(('capitalized') false ('String') true)
>
> does not display my method.
>
> Something wrong ?
>

No. MethodFinder only looks at methods that it knows about.
(see MethodFinder>>initialize, initialize2 and initialize3)

     Marcus



More information about the Squeak-dev mailing list