[squeak-dev] The Trunk: Collections-nice.895.mcz

commits at source.squeak.org commits at source.squeak.org
Sun May 10 19:51:12 UTC 2020


Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.895.mcz

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

Name: Collections-nice.895
Author: nice
Time: 10 May 2020, 9:50:58.314661 pm
UUID: cfd7db5f-61a4-48b5-a4d4-8ef873472161
Ancestors: Collections-nice.894

Remove byteSize, because super just works
It could have been defined as:
^self size * self bytesPerElement

But super is less dependent on correct redefinition of above two messages:
^ self basicSize * self bytesPerBasicElement

=============== Diff against Collections-nice.894 ===============

Item was removed:
- ----- Method: ByteArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size!

Item was removed:
- ----- Method: DoubleByteArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 2!

Item was removed:
- ----- Method: DoubleWordArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 8!

Item was removed:
- ----- Method: Float32Array>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 4!

Item was removed:
- ----- Method: Float64Array>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 8!

Item was removed:
- ----- Method: SignedByteArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size!

Item was removed:
- ----- Method: SignedDoubleByteArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 2!

Item was removed:
- ----- Method: SignedDoubleWordArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 8!

Item was removed:
- ----- Method: SignedWordArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 4!

Item was removed:
- ----- Method: WordArray>>byteSize (in category 'accessing') -----
- byteSize
- 	^self size * 4!



More information about the Squeak-dev mailing list