<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;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">http://forum.world.st/explicit-return-from-a-block-tp51833.html</span><br></div><div><span style="font-size: 13.3333px">http://forum.world.st/The-Trunk-Kernel-ul-519-mcz-td3077583.html</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><span style="font-size: 10pt"><br></span></div><div><span style="font-size: 10pt"><br></span></div><div><span style="font-size: 10pt">Best,</span></div><div><span style="font-size: 10pt">Marcel</span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" 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: #AAAAAA; margin-top: 10px;">Am 16.02.2021 14:05:23 schrieb Jaromir <m@jaromir.net>:</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: http://forum.world.st/Squeak-Dev-f45488.html<br><br></div></blockquote></div>