[etoys-dev] Etoys: Collections-kfr.9.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 5 10:59:21 EST 2012


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



More information about the etoys-dev mailing list