[Pkg] The Trunk: Collections-cmm.471.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 1 00:50:02 UTC 2012


Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.471.mcz

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

Name: Collections-cmm.471
Author: cmm
Time: 7 April 2012, 3:55:28.506 pm
UUID: e78ed15d-8393-4119-b4ac-df4811747699
Ancestors: Collections-nice.470

Allow the system to be extended with concatenation semantics.

=============== Diff against Collections-nice.470 ===============

Item was changed:
  ----- Method: Collection>>, (in category 'copying') -----
  , aCollection
+ 
+ 	^ self copy addAll: aCollection asCollection; yourself!
- 	^self copy addAll: aCollection; yourself!

Item was added:
+ ----- Method: Collection>>asCollection (in category 'converting') -----
+ asCollection
+ 
+ 	^ self!

Item was changed:
  ----- Method: SequenceableCollection>>, (in category 'copying') -----
  , otherCollection 
  	"Concatenate two Strings or Collections."
- 	
  	^ self copyReplaceFrom: self size + 1
  		  to: self size
+ 		  with: otherCollection asCollection
- 		  with: otherCollection
  "
  #(2 4 6 8) , #(who do we appreciate)
  ((2989 storeStringBase: 16) copyFrom: 4 to: 6) , ' boy!!'
  "!



More information about the Packages mailing list