Thanks Bert!<br><br>The byte code has the answer, I thought that the byte code will map the source code but I see that&#39;s not the case, probably to ensure some optimizations.. or to do that &quot;jump&quot; I don&#39;t know how to do that in smalltalk<br>

<br>Thanks a lot for taking the time to answer such a newbie question. <br><br>Erlis <br><br><div class="gmail_quote">On Tue, Oct 4, 2011 at 12:57 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><div class="im"><div>On 04.10.2011, at 18:41, Erlis Vidal wrote:</div><br><blockquote type="cite">

Can I add methods to literal blocks?</blockquote><div><br></div></div><div>Yes.</div><div class="im"><br><blockquote type="cite"> Where do I implement those methods?</blockquote><div><br></div></div>In class BlockClosure.<div class="im">

<br><br><blockquote type="cite">In case your answer is in BlockClosures, why I don&#39;t see any ifTrue: in the while implementation? <br></blockquote><br></div></div><div>Because the compiler generates a jump byte code for whileTrue: directly. In a browser on the whileTrue: method, click the &quot;source&quot; button to switch to showing byte codes.</div>

<br><font color="#888888"><div>
<span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Lucida Grande;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="font-family:Helvetica">

<span style="font-family:Helvetica">- Bert -</span></div><br></span>
</div>
<br></font></div><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br>