Re: [squeak-smalltalk/squeak-object-memory] future send of #value: to BlockClosure masks exceptions (Issue #85)

Christoph Thiede via Squeak-dev <[email protected]> Mon, 06 Jul 2026 13:29:08 -0700
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <squeak-smalltalk/squeak-object-memory/issues/85/[email protected]>
LinqLover left a comment (squeak-smalltalk/squeak-object-memory#85)

It seems the issue is not related to the `value:` send but to the additional promise chaining. This here fails, too:

```diff
testFutureRejectionVisibleError
	| p exceptionSeen |
	exceptionSeen := false.
	p := 1 future / 0.
+	p then: [:v | v  +10].
	[
		self assert: (self waitUntil: [p isRejected] orCycleCount: 100)
	] on: ZeroDivide do: [:ex | 	exceptionSeen := true ].
	self assert: exceptionSeen.
	self assert: p isRejected.
	self assert: ZeroDivide equals: p errorValue class.
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/squeak-smalltalk/squeak-object-memory/issues/85#issuecomment-4897326307
You are receiving this because you are subscribed to this thread.

Message ID: <squeak-smalltalk/squeak-object-memory/issues/85/[email protected]>

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]