[ANN] SystemChangeNotification on Squeakmap

Roel Wuyts wuyts at iam.unibe.ch
Wed Jul 30 22:17:27 UTC 2003


Yes, thought about that but then it has to loop over the collection 
just to extract the keys (in a Set), while #keysDo: directly runs over 
the associations. I slightly preferred the copying. But I don't mind 
either way :-)

On Wednesday, Jul 30, 2003, at 19:15 Europe/Zurich, Ned Konz wrote:

> On Wednesday 30 July 2003 09:32 am, Roel Wuyts wrote:
>> I changed it to use a copy of the actions map, since during the
>> iteration the keys can be changed. The method thus becomes:
>>
>>      removeActionsWithReceiver: anObject
>>
>>         self actionMap copy keysDo:
>
> Or maybe just:
>
> 	self actionMap keys do:
>
> -- 
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>
Roel Wuyts                                                   Software 
Composition Group
roel.wuyts at iam.unibe.ch                       University of Bern, 
Switzerland
http://www.iam.unibe.ch/~wuyts/
Board Member of the European Smalltalk User Group: www.esug.org



More information about the Squeak-dev mailing list