[Cuis-dev] Code duplication around unwinding

Juan Vuletich juan at cuis.st
Tue Feb 28 10:36:56 PST 2023


On 2/24/2023 7:16 PM, Jaromir Matas via Cuis-dev wrote:
>
> Hi Juan,
>
> this is the latest Squeak trunk version replacing all duplicate unwind 
> code with #unwindTo:safely: (sent already as part of the other 
> changeset with #terminate).
>
> The modified version of #unwindTo: just adds a Boolean distinguishing 
> between the "old" unwind semantics, i.e. only evaluating unwind blocks 
> that haven't started executing yet, and the "new" unwind semantics 
> applied in #terminate (safely: true enables the new semantics).
>
> As a bonus we can experiment with setting safely: true even for 
> "normal" returns, extending the unwind semantics for non-local returns 
> and exceptions. It's more or less working but haven't been tested 
> properly so this is my project for later this year :)
>
> Best regards,
>
> Jaromir
>
> --
>
> *Jaromír Matas*
>
> mail at jaromir.net
>

Hi Jaromir,

A quick review of the code doesn't obviously seem equivalent (at least 
in Cuis).

Still, if you see value here, I can devote more time to try to 
understand the differences.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230228/3f152b64/attachment-0001.htm>


More information about the Cuis-dev mailing list