[squeak-dev] The Inbox: Collections-JH.814.mcz
tim Rowledge
tim at rowledge.org
Fri Jan 25 22:17:59 UTC 2019
> 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
|