[Cuis-dev] A bug in handling nested #outer exceptions

Juan Vuletich juan at jvuletich.org
Mon May 3 09:11:54 PDT 2021


On 5/2/2021 2:28 PM, Jaromir Matas via Cuis-dev wrote:
>
> path := ''.
>
> [path := path, '1'.
>
>               [path := path, '2'.
>
>                            [1/0] on: ZeroDivide do: [:ex | ex outer. 
> path := path, '5'. ex return].
>
>                            path := path, '6'
>
>               ] on: ZeroDivide do: [:ex | ex outer. path := path, '4'. 
> ex resume].
>
>               path := path, '7'
>
> ] on: ZeroDivide do: [:ex | path := path, '3'. ex resume].
>
> path
>

Hi Jaromir,

I agree that it looks broken. But I can't really see what is the purpose 
of #outer, or think an example where this is relevant.
Anybody knows better?

Thanks,

-- 
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
@JuanVuletich



More information about the Cuis-dev mailing list