Hi all, <br><br>I was looking at the implementation of some of the flow control methods and I have a question with the method <b>whileTrue</b>. <br><br>First of all, I can see two identical implementation in the classes <b>BlockClosure</b> and <b>BlockContext</b> the implementation is this <br>

<br><font size="2"><b style="font-family: courier new,monospace;">whileTrue</b><span style="font-family: courier new,monospace;">: </span><span style="color: rgb(0, 0, 153); font-family: courier new,monospace;">aBlock </span><br style="font-family: courier new,monospace;">

<span style="color: rgb(0, 102, 0); font-family: courier new,monospace;">    &quot;Ordinarily compiled in-line, and therefore not overridable.</span><br style="color: rgb(0, 102, 0); font-family: courier new,monospace;">
<span style="color: rgb(0, 102, 0); font-family: courier new,monospace;">    This is in case the message is sent to other than a literal block.</span><br style="color: rgb(0, 102, 0); font-family: courier new,monospace;">

<span style="color: rgb(0, 102, 0); font-family: courier new,monospace;">    Evaluate the argument, aBlock, as long as the value of the receiver is true.&quot;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    ^ [</span><span style="color: rgb(51, 153, 153); font-family: courier new,monospace;">self </span><span style="font-family: courier new,monospace;">value] whileTrue: [</span><span style="color: rgb(0, 0, 153); font-family: courier new,monospace;">aBlock </span><span style="font-family: courier new,monospace;">value]</span></font><br>

<br>I&#39;m assuming here that there&#39;s another class <b>Block</b> I&#39;m missing (something like the literal block mentioned in the comment) which is the one that contains the logic I was looking for. But I&#39;m not able to find any other whileTrue method in my image. What&#39;s the difference between BlockClosure and BlockContext? <br>

<br>Thanks, <br>Erlis <br>