Etoys: Collections-kfr.9.mcz

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

Etoys: Collections-kfr.9.mcz

commits-2
Karl Ramberg uploaded a new version of Collections to project Etoys:
http://source.squeak.org/etoys/Collections-kfr.9.mcz

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

Name: Collections-kfr.9
Author: kfr
Time: 5 December 2012, 4:58:43 pm
UUID: cbcd8469-2a1a-e247-848b-b3d559df006c
Ancestors: Collections-kfr.8

Fix long standing bug with printing small numbers ie 1.2245678e-16
Copied method from Squeak 4.4

=============== Diff against Collections-kfr.8 ===============

Item was added:
+ ----- Method: SequenceableCollection class>>new:streamContents: (in category 'stream creation') -----
+ new: newSize streamContents: blockWithArg
+
+ | stream |
+ stream := WriteStream on: (self new: newSize).
+ blockWithArg value: stream.
+ stream position = newSize
+ ifTrue: [ ^stream originalContents ]
+ ifFalse: [ ^stream contents ]!

_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev