'From Squeak3.10beta of 22 July 2007 [latest update: #7137] on 15 November 2007 at 9:32:47 pm'! "Change Set: WideCharacterSet-M3574-nice-hashPatch Date: 15 November 2007 Author: nice hash is bugged. it sends an unimplemented message. (due to some untested refactoring). moreover, since WideCharacterSet can equal ordinary CharacterSet, hash has to care of it, what it did not. this is a patch correcting this behavior."! !WideCharacterSet methodsFor: 'comparing' stamp: 'nice 11/15/2007 21:26'! hash "Answer a hash code aimed at storing and retrieving the receiver in a Set or Dictionary. Two equal objects should have equal hash. Note: as the receiver can be equal to an ordinary CharacterSet, the hash code must reflect this" ^self hasWideCharacters ifTrue: [map hash] ifFalse: [self asCharacterSet hash]! !