<br><br><div class="gmail_quote">On Fri, Nov 28, 2008 at 8:52 AM, 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>
On 27.11.2008, at 18:44, Keith Hodges wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello All,<br>
<br>
I need a villainous superpower that I haven&#39;t needed before, can anyone<br>
tell me how to achieve this.<br>
<br>
I have some code like this:<br>
<br>
self send a message to me.<br>
self nextThing.<br>
<br>
or<br>
<br>
self send a message to me.<br>
A := self nextThing.<br>
<br>
What naughty superpower code can I put in to #send that will jump<br>
execution to self nextThing directly?<br>
</blockquote>
<br>
<br></div></div>
send<br>
 &nbsp; &nbsp; &nbsp; &nbsp;...<br>
 &nbsp; &nbsp; &nbsp; &nbsp;thisContext sender jump: 4<br>
<br>
This skips 4 bytecodes in the calling method before returning, so instead of pc=31 it continues at pc=35:<br>
<br></blockquote></div><br>In terms of code smells, this is chemical warfare!! :-D.<br><br>Gulik.<br><br>--<br><a href="http://people.squeakfoundation.org/person/mikevdg">http://people.squeakfoundation.org/person/mikevdg</a><br>
<a href="http://gulik.pbwiki.com/">http://gulik.pbwiki.com/</a><br>