The Trunk: Collections-nice.895.mcz

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

The Trunk: Collections-nice.895.mcz

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


Reply | Threaded
Open this post in threaded view
|

Re: The Trunk: Collections-nice.895.mcz

timrowledge


> On 2020-05-10, at 12:51 PM, [hidden email] wrote:
>
> Nicolas Cellier uploaded a new version of Collections to project The Trunk:
> http://source.squeak.org/trunk/Collections-nice.895.mcz

Looks like it fixed that one.



tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Blurglar: cat burglar that relies on speed