[squeak-dev] The Trunk: Collections-nice.133.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Sep 15 19:11:16 UTC 2009


Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.133.mcz

==================== Summary ====================

Name: Collections-nice.133
Author: nice
Time: 15 September 2009, 9:10:35 am
UUID: 13e8a40f-d55e-4e97-8a8a-f4624fa972b1
Ancestors: Collections-nice.132

Harvest 3 missing fixes from http://bugs.squeak.org/view.php?id=6367

1) Create a CharacterSetComplement on a copy of the original (to avoid modifying the original when modifying the complement)

2) Create a postCopy to avoid modifying the original when modifying the copy

3) Correct a type in hash

Strange, I thought it was already harvested in 3.10 ...

=============== Diff against Collections-nice.132 ===============

Item was added:
+ ----- Method: CharacterSetComplement>>postCopy (in category 'copying') -----
+ postCopy
+ 	absent := absent copy!

Item was changed:
  ----- Method: CharacterSet>>complement (in category 'conversion') -----
  complement
  	"return a character set containing precisely the characters the receiver does not"
  	
+ 	^CharacterSetComplement of: self copy!
- 	^CharacterSetComplement of: self!

Item was changed:
  ----- Method: WideCharacterSet>>complement (in category 'converting') -----
  complement
  	"return a character set containing precisely the characters the receiver does not"
  	
+ 	^CharacterSetComplement of: self copy!
- 	^CharacterSetComplement of: self!

Item was changed:
  ----- Method: CharacterSetComplement>>hash (in category 'comparing') -----
  hash
+ 	^ absent hash bitXor: self class hash!
- 	^absent hash bitXOr: self class hash!




More information about the Squeak-dev mailing list