<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Cool, nice utility - even though it does not support good readability of your code for sure :-) I have always used "thisContext return" for a similar result. :-D</p>
<p><br>
</p>
<p>What about supporting a return argument here as well, like:</p>
<p><span>self value: [ :ret | ^ ret ]</span><br>
</p>
<p><span>?</span></p>
<p><span><br>
</span></p>
<p><span>This could increase the usefulness of #valueWithExit, but on the other hand, all clients would need to send #cull: or #value:. Any opinions? :-)</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p>Christoph</p>
<div id="x_Signature">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<div name="x_divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von commits@source.squeak.org <commits@source.squeak.org><br>
<b>Gesendet:</b> Mittwoch, 17. Februar 2021 17:56:32<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org; packages@lists.squeakfoundation.org<br>
<b>Betreff:</b> [squeak-dev] The Trunk: Kernel-mt.1371.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Marcel Taeumel uploaded a new version of Kernel to project The Trunk:<br>
<a href="http://source.squeak.org/trunk/Kernel-mt.1371.mcz">http://source.squeak.org/trunk/Kernel-mt.1371.mcz</a><br>
<br>
==================== Summary ====================<br>
<br>
Name: Kernel-mt.1371<br>
Author: mt<br>
Time: 17 February 2021, 5:56:29.152426 pm<br>
UUID: 1e5b05c3-feb7-e945-a253-3218ee358e74<br>
Ancestors: Kernel-mt.1370<br>
<br>
Extracts better examples for #valueWithExit from squeak-dev mailing list.<br>
<br>
=============== Diff against Kernel-mt.1370 ===============<br>
<br>
Item was changed:<br>
  ----- Method: BlockClosure>>valueWithExit (in category 'evaluating') -----<br>
  valueWithExit<br>
+        "Provides an exit block to the receiver. Use it to break out of the control flow with an early return. Examples below.<br>
+                [:break | 1 to: 10 do: [:each | each > 5 ifTrue: [break value]]] valueWithExit.<br>
+                1 to: 10 do: [:each | [:continue | each > 5 ifTrue: [continue value]] valueWithExit]."<br>
-        "Provides an exit block to the receiver. Use it to break out of the control flow with an early return. For example:<br>
-                [:exit | 1 to: 10 do: [:each | each > 5 ifTrue: [exit value]]] valueWithExit"<br>
           self value: [ ^nil ]!<br>
<br>
<br>
</div>
</span></font>
</body>
</html>