A new version of Kernel was added to project The Inbox: http://source.squeak.org/inbox/Kernel-jr.1532.mcz
==================== Summary ====================
Name: Kernel-jr.1532 Author: jr Time: 9 November 2023, 3:08:48.989163 pm UUID: 5af29860-7431-0b48-b551-f59dcc85b3b8 Ancestors: Kernel-dtl.1531
Future evaluations should not catch exceptions that are not supposed to be caught or not meant to abort any control flow. This includes Notifications such as CurrentReadOnlySourceFiles.
=============== Diff against Kernel-dtl.1531 ===============
Item was changed: ----- Method: Promise>>fulfillWith:passErrors: (in category 'resolving') ----- fulfillWith: aBlock passErrors: aBoolean "Evaluate aBlock. If it signals an exception, reject this promise with the exception as the argument; if it returns a value [or another Promise], resolve this promise with the result. If aBoolean is true, and an exception is signaled, it is passed out to the caller. If aBoolean is false, signaled exceptions are considered handled after the promise has been rejected." [ self resolveWith: aBlock value ] + on: Error - on: Exception do: [ :ex | + self rejectWith: ex. + aBoolean ifTrue: [ ex pass ] ]! - (ex isKindOf: Halt) - ifTrue: [ex pass] - ifFalse: [ - self rejectWith: ex. - aBoolean ifTrue: [ ex pass ] ]]!
Thanks! +1
--- Sent from Squeak Inbox Talk
On 2023-11-09T14:08:52+00:00, commits@source.squeak.org wrote:
A new version of Kernel was added to project The Inbox: http://source.squeak.org/inbox/Kernel-jr.1532.mcz
==================== Summary ====================
Name: Kernel-jr.1532 Author: jr Time: 9 November 2023, 3:08:48.989163 pm UUID: 5af29860-7431-0b48-b551-f59dcc85b3b8 Ancestors: Kernel-dtl.1531
Future evaluations should not catch exceptions that are not supposed to be caught or not meant to abort any control flow. This includes Notifications such as CurrentReadOnlySourceFiles.
=============== Diff against Kernel-dtl.1531 ===============
Item was changed: ----- Method: Promise>>fulfillWith:passErrors: (in category 'resolving') ----- fulfillWith: aBlock passErrors: aBoolean "Evaluate aBlock. If it signals an exception, reject this promise with the exception as the argument; if it returns a value [or another Promise], resolve this promise with the result.
If aBoolean is true, and an exception is signaled, it is passed out to the caller. If aBoolean is false, signaled exceptions are considered handled after the promise has been rejected." [ self resolveWith: aBlock value ]
on: Error
do: [ :ex |on: Exception
self rejectWith: ex.
aBoolean ifTrue: [ ex pass ] ]!
(ex isKindOf: Halt)
ifTrue: [ex pass]
ifFalse: [
self rejectWith: ex.
aBoolean ifTrue: [ ex pass ] ]]!
squeak-dev@lists.squeakfoundation.org