[squeak-dev] The Inbox: Collections-ul.142.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Sep 22 03:30:14 UTC 2009


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




More information about the Squeak-dev mailing list