<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 04.10.2011, at 18:41, Erlis Vidal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Can I add methods to literal blocks?</blockquote><div><br></div><div>Yes.</div><br><blockquote type="cite"> Where do I implement those methods?</blockquote><div><br></div>In class&nbsp;BlockClosure.<br><br><blockquote type="cite">In case your answer is in BlockClosures, why I don't see any ifTrue: in the while implementation? <br></blockquote><br></div><div>Because the compiler generates a jump byte code for whileTrue: directly. In a browser on the whileTrue: method, click the "source" button to switch to showing byte codes.</div><br><div>
<span class="Apple-style-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; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>