[squeak-dev] The Inbox: Collections-JH.814.mcz

patrick.rein at hpi.uni-potsdam.de patrick.rein at hpi.uni-potsdam.de
Sat Jan 26 13:21:49 UTC 2019


Just a heads up, that I have already implemented the check. The implementation currently parallels the emptyCheck (see Collections-pre.818). 

Bests
Patrick

>
>
>> On 2019-01-25, at 1:25 PM, Chris Muller <ma.chris.m at gmail.com> wrote:
>> 
>>> Yes, we might want to reduce the amound of duplicate error strings in the entire image.
>> 
>> Yes!
>
>Absolutely. Maybe a new exception with a suitable default message - 
>primAddArray: floatArray
>
>
>+ self size = floatArray size ifFalse:[^ArraysMustBeEqualSizeError signal].
>1 to: self size do:[:i| self at: i put: (self at: i) + (floatArray at: i)].!
>
>Or something like that.
>
>tim
>--
>tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
>"!" The strange little noise you make when you can't scream...
>
>
>


More information about the Squeak-dev mailing list