<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 4, 2021 at 1:30 PM Jaromir Matas <<a href="mailto:m@jaromir.net">m@jaromir.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Nicolas Cellier wrote<br>
> Waouh, you're exploring dark corners ;)<br>
<br>
Hi, yeah... found some skeletons :)<br>
<br>
I'll send a fix to the Inbox closing the second issue (re-signalling) and<br>
I'll leave the first question open, i.e. whether the following two are<br>
equivalent or distinct:<br>
<br>
[] on: Exception do: [ 42 ]<br>
[] on: Exception do: [:ex | ex return: 42 ]</blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);border-right-width:1px;border-right-style:solid;border-right-color:rgb(204,204,204);padding-left:1ex;padding-right:1ex"></blockquote><span style="color:rgb(0,0,0);font-family:arial,sans-serif">I've always assumed/understood that the two are equivalent.  <span class="gmail_default" style="font-size:small">To be more precise I've always assumed/understood that the first is short-hand for the second.  That somewhere in the exception system there is code like</span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small"><br></span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small">    exception return: (handlerBlock cull: exception)</span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small"><br></span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small">so that if the handler block returns a value the exception is sent return: with its value.</span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small"><br></span></span></div><div class="gmail_quote"><span style="color:rgb(0,0,0);font-family:arial,sans-serif"><span class="gmail_default" style="font-size:small"></span>Phrasing the question the other way around, in what ways would anyone expect</span><br><font color="#000000" face="arial, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br></span></font><span style="color:rgb(0,0,0);font-family:arial,sans-serif">[] on: Exception do: [ 42 ]</span><br><span style="color:rgb(0,0,0);font-family:arial,sans-serif">[] on: Exception do: [:ex | ex return: 42 ]</span><br><font color="#000000" face="arial, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br></span></font><span style="color:rgb(0,0,0);font-family:arial,sans-serif">to differ?</span></div><div class="gmail_quote"><font color="#000000" face="arial, sans-serif"><span style="caret-color: rgb(0, 0, 0);"><br></span></font><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
Thanks,<br>
<br>
<br>
<br>
<br>
-----<br>
^[^ Jaromir<br>
--<br>
Sent from: <a href="http://forum.world.st/Squeak-Dev-f45488.html" rel="noreferrer" target="_blank">http://forum.world.st/Squeak-Dev-f45488.html</a><br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div></div>