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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

commits-2
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]])!