[Pkg] The Trunk: Collections-eem.723.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Nov 19 00:49:32 UTC 2016


Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.723.mcz

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

Name: Collections-eem.723
Author: eem
Time: 18 November 2016, 4:48:38.535448 pm
UUID: 470b6823-5711-407f-bdf3-ae2d7585fcba
Ancestors: Collections-nice.722

Provide a default bytesPerElement that accords with reality.

=============== Diff against Collections-nice.722 ===============

Item was changed:
  ----- Method: ArrayedCollection>>bytesPerElement (in category 'objects from disk') -----
  bytesPerElement
+ 	| bytesPerElementOrZero |
+ 	bytesPerElementOrZero := #[0 0 0 0 0 0 0 0 8 4 4 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1] at: self class instSpec.
+ 	^bytesPerElementOrZero = 0
+ 		ifTrue: [Smalltalk wordSize]
+ 		ifFalse: [bytesPerElementOrZero]!
- 	^self class isBytes ifTrue: [ 1 ] ifFalse: [ 4 ].
- !



More information about the Packages mailing list