[squeak-dev] The Inbox: Collections-ul.142.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 Inbox: Collections-ul.142.mcz

commits-2
A new version of Collections was added to project The Inbox:
http://source.squeak.org/inbox/Collections-ul.142.mcz

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

Name: Collections-ul.142
Author: ul
Time: 22 September 2009, 5:07:35 am
UUID: 9b0cd4be-2e51-064a-9e79-620eda88e176
Ancestors: Collections-ul.141

- removed unnecessary #copy from Set and Dictionary

=============== Diff against Collections-ul.141 ===============

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