[squeak-dev] Questions about FullBlock closures

tim Rowledge tim at rowledge.org
Sun Feb 12 04:17:44 UTC 2023

> On 2023-02-11, at 4:04 PM, Jaromir Matas <mail at jaromir.net> wrote:
> If I may, I have a question here: What is the purpose of the primitive 196 Context>>#terminateTo:? Why primitive and why terminating each context along the way? Naively, I'd think checking the two contexts are in the same sender chain and patching them via privSender should do but I'm sure I'm missing something here :)

Exception handling stuff. Strongly related to prim 195 & 197. You have to check each context up the chain to see what exceptions might be dealt with & by which context. Look at e.g. Process>>#terminate for some context.

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
When flying inverted, remember that down is up and up is expensive

More information about the Squeak-dev mailing list