If nobody objects, I will apply these changes soon.
Best,
Christoph
---
Sent from Squeak Inbox Talk
On 2021-05-14T14:10:35-05:00, m@jaromir.net wrote:
> Hi Christoph,
>
> There's a funny method under IllegalResumeAttempt:
>
> #readMe
>
> "Never handle this exception!"
>
> Author: The Fourth Estate, Inc., 1999
>
> I can't see anything wrong with your example, the logic is clean so I'm very
> curious what more experienced people have to say :)
>
>
> Christoph Thiede wrote
> > It would not even be a problem (although not a recommended pattern) to say
> > something like:
> >
> >
> > [self error + 1]
> > on: Error
> > do: [:ex1 |
> > [ex1 resume: 42]
> > on: IllegalResumeAttempt
> > do: [:ex2 |
> > "Well, then return instead"
> > ex1 return: 42] ].
>
> best,
>
>
>
> -----
> ^[^ Jaromir
> --
> Sent from: http://forum.world.st/Squeak-Dev-f45488.html