Hi. Suppose I am doing something in #commonSend:<br><br>commonSend<br>    &quot;Send a message, starting lookup with the receiver&#39;s class.&quot;<br>    &quot;Assume: messageSelector and argumentCount have been set, and that <br>

    the receiver and arguments have been pushed onto the stack,&quot;<br>    &quot;Note: This method is inlined into the interpreter dispatch loop.&quot;<br>    &lt;sharedCodeNamed: &#39;commonSend&#39; inCase: 131&gt;<br>

    self internalFindNewMethod.<br>    self internalExecuteNewMethod.<br>    self fetchNextBytecode<br><br><br>and somewhere there I want to do something like this:<br><br>(messageSelector = &#39;#foo&#39;) ifTrue: [ self print: &#39;the message foo was called&#39;; cr ].<br>

<br>messageSelector is the instVar of Interpreter and it is already in the stack.<br><br clear="all">Of course, the part that doesn&#39;t work is (messageSelector = &#39;#foo&#39;) <br>I tried several things but I don&#39;t find how to do it.<br>

<br>Thank in advance<br><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>