Mod operator?

Bert Freudenberg bert at freudenbergs.de
Tue Aug 14 17:10:13 UTC 2007


(moved from beginners list)

On Aug 14, 2007, at 0:51 , Michael van der Gulik wrote:

> Matthew Fulmer wrote:
>> On Sat, Aug 11, 2007 at 11:05:54AM -0400, John Almberg wrote:
>>
>>>    Sorry for this simple question, but I can't seem to find the  
>>> mod operator.
>>>    As in, "what's the remainder after doing division?"
>>>    Thanks: John
>>>
>>
>> For such questions, it is best to use the method finder:
>> - Open method finder (world menu -> open -> method finder)
>> - enter a mod expression ( such as 7 . 3 . 1 ) and hit enter
>> - method finder gives several answers. Two of them are what you
>>   are looking for
>>
> ****WOW****!! That's just magic!
>
> I can't believe that I'm still finding more incredible features in
> Squeak after spending a couple of years immersed in it.

Indeed. And because many are unaware of these features they get  
broken regularly. I think the list of "safe" selectors to try wasn't  
updated in ages, although there were many additions to the base  
system that could be found using the method finder.

- Bert -





More information about the Squeak-dev mailing list