[squeak-dev] The Trunk: Collections-ar.143.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Sep 30 05:09:26 UTC 2009


Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.143.mcz

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

Name: Collections-ar.143
Author: ar
Time: 29 September 2009, 10:08:54 am
UUID: dbdba380-1e1f-0244-9cd7-1e61d8dcda02
Ancestors: Collections-ar.142, Collections-ul.142

Merging Collections-ul.142:

- removed unnecessary #copy from Set and Dictionary

=============== Diff against Collections-ar.142 ===============

Item was removed:
- ----- Method: Set>>copy (in category 'copying') -----
- copy
- 	^ self shallowCopy withArray: array shallowCopy!

Item was removed:
- ----- Method: Dictionary>>copy (in category 'private') -----
- copy
- 	"Must copy the associations, or later store will affect both the
- original and the copy"
- 
- 	^ self shallowCopy withArray:
- 		(array collect: [:assoc |
- 			assoc ifNil: [nil]
- 				ifNotNil: [Association key: assoc key
- value: assoc value]])!




More information about the Squeak-dev mailing list