[Cuis-dev] A bug in handling nested #outer exceptions
Jaromir Matas
mail at jaromir.net
Mon May 3 09:29:01 PDT 2021
Hi Juan,
I agree #outer doesn’t have much use; my objective was to learn the implementation and incidentally I discovered it’s broken… so just reporting it :) It might be worth mentioning the bug in the image so that people don’t struggle with the code… Or integrate the test as expected failure to keep track of the issue?
Best regards,
Jaromir
From: Juan Vuletich<mailto:juan at jvuletich.org>
Sent: Monday, May 3, 2021 18:12
To: Discussion of Cuis Smalltalk<mailto:cuis-dev at lists.cuis.st>
Cc: Jaromir Matas<mailto:mail at jaromir.net>
Subject: Re: [Cuis-dev] A bug in handling nested #outer exceptions
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<http://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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20210503/b8696824/attachment.htm>
More information about the Cuis-dev
mailing list