The Trunk: Collections-ar.266.mcz

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

The Trunk: Collections-ar.266.mcz

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