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

commits at source.squeak.org commits at source.squeak.org
Sun Dec 27 14:03:39 UTC 2009


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

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

Name: Collections-ar.266
Author: ar
Time: 27 December 2009, 3:02:19 am
UUID: c22b1738-a188-894b-a453-c8bfd3ec5686
Ancestors: Collections-nice.265

Allow implicit coercion to string when using string concatenation, i.e,
	Transcript cr; show: 'The value is: ', 3.
instead of
	Transcript cr; show: 'The value is: ', 3 printString.


=============== Diff against Collections-nice.265 ===============

Item was added:
+ ----- Method: String>>, (in category 'converting') -----
+ , anObject
+ 	"Concatenate the argument to the receiver.
+ 		Transcript cr; show: 'The value is: ', 3.
+ 	"
+ 	^ self copyReplaceFrom: self size + 1
+ 		  to: self size
+ 		  with: anObject asString!




More information about the Squeak-dev mailing list