[squeak-dev] Re: Object>>#is:? (was: Re: PackageDependencyTest)

Stéphane Rollandin lecteur at zogotounga.net
Thu Mar 4 21:18:32 UTC 2010


>> so #is: can not actually safely belong to a single package. while
>> #isWhatMyUncleLikes will only be in my package MyUncle, except if someone
>> else has the same kind of weird ideas about protocol names.
>>
> ah yeah! And to achieve this, you need to patch an Object class by
> adding #isWhatMyUncleLikes.
> But Object really does not belongs to your package.

I got it; see my answer to Juan. I guess I'm just programming in bad 
style: I do indeed consider that Object is part of my packages (or, more 
accurately, that Object is not a forbidden place for my package to go in).

The pleasure I have in programming Squeak comes largely from the fact 
that I can dig code all other the place and tweak whatever class I want. 
I need first to understand what a class is, what it does, then I have to 
respect the way it is used in the image, but then, when I'm confident 
enough that I am not behaving like a rude person, I feel free to add my 
own code to it. That's my style.

regards,

Stef





More information about the Squeak-dev mailing list