[Cuis-dev] On the changes to detect method returns in exception handlers

Phil B pbpublist at gmail.com
Thu Oct 17 13:35:51 PDT 2019


Juan,

On Thu, Oct 17, 2019 at 1:08 PM Juan Vuletich <juan at jvuletich.org> wrote:

> Hi Phil,
>
> On 10/17/2019 2:31 AM, Phil B wrote:
>
> My changes do two things. One is to avoid non local returns in handler
>> blocks. The other one is about a few places where you did [ :exception |
>> exception signal ] as the signal handler. Exceptions can only be signaled
>> once! I changed them to do [ :exception | exception pass ]. This was
>> breaking the exception system if the recent changes were loaded.
>>
>
> 1) Would you be opposed to a #nonLocalReturn: method on Exception?  That
> seems to me a cleaner and clearer way of doing this.  It's also more
> consistent with how Exception deals with the other scenarios.
>
>
> I think #nonLocalReturn: would be ok. Maybe a better name could be
> #methodReturn:
>
>
Attached (along with exception recycling).  This was too easy... what did I
miss?

Thanks,
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20191017/85250571/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3925-Exception-extensions-PhilBellalouna-2019Oct17-16h12m-pb.1.cs.st
Type: application/octet-stream
Size: 548 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20191017/85250571/attachment.obj>


More information about the Cuis-dev mailing list