<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 Wed, Feb 17, 2021 at 8:52 AM Marcel Taeumel <<a href="mailto:marcel.taeumel@hpi.de">marcel.taeumel@hpi.de</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"><div id="gmail-m_7974546494793354187__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr">
                                        Hi Jaromir.<div><br></div><div>I added commentary via Kernel-mt.1370. I don't think that the (outer block's) return value should ever be used in this construct. It is more like a #detect: but without meaningful return values.</div><div><br></div><div><span style="font-size:13.3333px"><a href="http://forum.world.st/explicit-return-from-a-block-tp51833.html" target="_blank">http://forum.world.st/explicit-return-from-a-block-tp51833.html</a></span><br></div><div><span style="font-size:13.3333px"><a href="http://forum.world.st/The-Trunk-Kernel-ul-519-mcz-td3077583.html" target="_blank">http://forum.world.st/The-Trunk-Kernel-ul-519-mcz-td3077583.html</a></span><br></div><div><span style="font-size:13.3333px"><br></span></div><div><span style="font-size:13.3333px">I don't suppose it is idiomatic Smalltalk: </span>"...<span style="font-size:10pt">but actually, I never had any reason to use this except when porting </span><span style="font-size:10pt">algorithms from Fortran or C... "</span></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">But there's a bug.  It should at least answer the result of value:. I'm going to change it.</div><div class="gmail_default" style="font-size:small"></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"><div id="gmail-m_7974546494793354187__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr"><div><span style="font-size:10pt">Best,</span><br></div><div><span style="font-size:10pt">Marcel</span></div><div></div>
                                        <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-top:20px;margin-left:0px;padding-left:10px;min-width:500px">
                        <p style="color:rgb(170,170,170);margin-top:10px">Am 16.02.2021 14:05:23 schrieb Jaromir <<a href="mailto:m@jaromir.net" target="_blank">m@jaromir.net</a>>:</p><div style="font-family:Arial,Helvetica,sans-serif">Current implementation of #valueWithExit seems a bit inconsistent in its<br>return value: it returns either nil (if the receiver exited using the exit<br>block) or the receiver.<br><br>Would it be worth modifying it to always return nil? (there are no senders<br>anyway)<br><br>valueWithExit <br>-         self value: [ ^nil ]<br>+         ^self value: [ ^nil ]<br><br>Or using a nice complementary method #valueWithExit:<br><br>valueWithExit: aBlock <br>     self value: [^aBlock value].<br>  ^aBlock value<br><br>valueWithExit <br>       ^self valueWithExit: [nil]<br><br>Thanks<br><br><br><br>-----<br>Jaromir<br>^[^<br>--<br>Sent from: <a href="http://forum.world.st/Squeak-Dev-f45488.html" target="_blank">http://forum.world.st/Squeak-Dev-f45488.html</a><br><br></div></blockquote></div><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>