Re: [Pharo-users] IdentityDictionary reset

2018-04-11 Thread Stephane Ducasse
Hello Can you let us know why you are using pharo 40? It is around at least three years old and we made a lot of progress in the last 3 years. Stef On Mon, Apr 9, 2018 at 10:00 AM, Trussardi Dario Romano wrote: > Ciao, > > in the Pharo 4.0 image i have a

Re: [Pharo-users] IdentityDictionary reset

2018-04-09 Thread Sven Van Caekenberghe
There is #removeAll. You should also check out #keysAndValuesRemove: Removing from a collection while iterating over it is dangerous. > On 9 Apr 2018, at 10:00, Trussardi Dario Romano > wrote: > > Ciao, > > in the Pharo 4.0 image i have a IdentityDictionary

Re: [Pharo-users] IdentityDictionary reset

2018-04-09 Thread Alistair Grant
Hi Dario, On 9 April 2018 at 10:00, Trussardi Dario Romano wrote: > Ciao, > > in the Pharo 4.0 image i have a IdentityDictionary with ten items. > > Now when i reset the dictionary the system behaves as follows: > > Version A) resetAllLocks >

[Pharo-users] IdentityDictionary reset

2018-04-09 Thread Trussardi Dario Romano
Ciao, in the Pharo 4.0 image i have a IdentityDictionary with ten items. Now when i reset the dictionary the system behaves as follows: Version A) resetAllLocks locks keysAndValuesDo:[:k :v | locks removeKey: k ifAbsent: [self