Marcel Taeumel uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-mt.815.mcz==================== Summary ====================
Name: Collections-mt.815
Author: mt
Time: 25 January 2019, 9:14:33.882997 am
UUID: 84a9d4dc-2c9e-4b48-84b9-66254895c0bb
Ancestors: Collections-mt.812, Collections-JH.814
Merges Collections-JH.814
=============== Diff against Collections-eem.811 ===============
Item was added:
+ ----- Method: Collection>>try: (in category 'enumerating') -----
+ try: aBlock
+ "Evaluate aBlock with each of the receiver's elements as the argument. On error, skip that element and continue."
+
+ ^ self try: aBlock ignore: Error!
Item was added:
+ ----- Method: Collection>>try:ignore: (in category 'enumerating') -----
+ try: aBlock ignore: exceptionOrExceptionSet
+ "Evaluate aBlock with each of the receiver's elements as the argument. On error, skip that element and continue."
+
+ ^ self
+ try: aBlock
+ ignore: exceptionOrExceptionSet
+ logged: false!
Item was added:
+ ----- Method: Collection>>try:ignore:logged: (in category 'enumerating') -----
+ try: aBlock ignore: exceptionOrExceptionSet logged: aBoolean
+ "Evaluate aBlock with each of the receiver's elements as the argument. On error, skip that element and continue."
+
+ ^ self do: [:ea |
+ [aBlock value: ea]
+ on: exceptionOrExceptionSet
+ do: [:err | aBoolean ifTrue: [Transcript showln: err messageText]]]!
Item was changed:
----- Method: FloatArray>>primAddArray: (in category 'primitives-plugin') -----
primAddArray: floatArray
<primitive: 'primitiveAddFloatArray' module: 'FloatArrayPlugin'>
+ self size = floatArray size ifFalse:[^self error:'Must be equal size'].
1 to: self size do:[:i| self at: i put: (self at: i) + (floatArray at: i)].!
Item was changed:
----- Method: FloatArray>>primDivArray: (in category 'primitives-plugin') -----
primDivArray: floatArray
<primitive: 'primitiveDivFloatArray' module: 'FloatArrayPlugin'>
+ self size = floatArray size ifFalse:[^self error:'Must be equal size'].
1 to: self size do:[:i| self at: i put: (self at: i) / (floatArray at: i)].!
Item was changed:
----- Method: FloatArray>>primMulArray: (in category 'primitives-plugin') -----
primMulArray: floatArray
<primitive: 'primitiveMulFloatArray' module: 'FloatArrayPlugin'>
+ self size = floatArray size ifFalse:[^self error:'Must be equal size'].
1 to: self size do:[:i| self at: i put: (self at: i) * (floatArray at: i)].!
Item was changed:
----- Method: FloatArray>>primSubArray: (in category 'primitives-plugin') -----
primSubArray: floatArray
<primitive: 'primitiveSubFloatArray' module: 'FloatArrayPlugin'>
+ self size = floatArray size ifFalse:[^self error:'Must be equal size'].
1 to: self size do:[:i| self at: i put: (self at: i) - (floatArray at: i)].!