<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<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>Oh, I like to use them in some cases. #whileTrue: etc. are top-controlled loops (<span>™ 0 runs), whereas #doWhileTrue: is a bottom-controlled loop (> 0 runs). Both concepts can be relevant at different times. However, I agree the naming is a bit counter-intuitive.
 #doWhile: and #doUntil: might be better names.</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></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 Levente Uzonyi <leves@caesar.elte.hu><br>
<b>Gesendet:</b> Dienstag, 31. Dezember 2019 02:09:24<br>
<b>An:</b> squeak-dev@lists.squeakfoundation.org<br>
<b>Betreff:</b> Re: [squeak-dev] The Inbox: Tests-ct.425.mcz</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Before we start using #doWhileTrue: and #doWhileFalse:, we should consider
<br>
deprecating them. This is the first time I've seen those methods, and they <br>
have no real users in the Trunk.<br>
Same applies to #whileNil: and #whileNotNil: too of BlockClosure's <br>
controlling category.<br>
<br>
Levente<br>
<br>
On Mon, 30 Dec 2019, commits@source.squeak.org wrote:<br>
<br>
> Christoph Thiede uploaded a new version of Tests to project The Inbox:<br>
> <a href="http://source.squeak.org/inbox/Tests-ct.425.mcz">http://source.squeak.org/inbox/Tests-ct.425.mcz</a><br>
><br>
> ==================== Summary ====================<br>
><br>
> Name: Tests-ct.425<br>
> Author: ct<br>
> Time: 30 December 2019, 7:19:53.668602 pm<br>
> UUID: fc85b43b-45f8-b340-b295-d43ee9de7a5f<br>
> Ancestors: Tests-mt.424<br>
><br>
> Adds regression test for a compiler bug that was fixed in Compiler-ct.414<br>
><br>
> =============== Diff against Tests-mt.424 ===============<br>
><br>
> Item was added:<br>
> + ----- Method: CompilerTest>>testCascadeOnBlock (in category 'tests - syntax') -----<br>
> + testCascadeOnBlock<br>
> +      "Regression test. See <a href="http://forum.world.st/BUG-Cannot-compile-cascade-sent-to-block-td5108942.html">
http://forum.world.st/BUG-Cannot-compile-cascade-sent-to-block-td5108942.html</a>"<br>
> + <br>
> +      self<br>
> +              shouldnt: [Compiler<br>
> +                      evaluate: '[true] whileFalse; whileFalse'<br>
> +                      notifying: PluggableTextMorph new "dummy requestor"]<br>
> +              raise: Error.<br>
> +      self<br>
> +              assert: 2<br>
> +              equals: (Compiler<br>
> +                      evaluate: '| x | x := 0. [x := x + 1] doWhileTrue: [false]; doWhileFalse: [true]. x'<br>
> +                      notifying: PluggableTextMorph new "dummy requestor").!<br>
<br>
</div>
</span></font>
</body>
</html>