Hi. Suppose I am doing something in #commonSend:<br><br>commonSend<br> "Send a message, starting lookup with the receiver's class."<br> "Assume: messageSelector and argumentCount have been set, and that <br>
the receiver and arguments have been pushed onto the stack,"<br> "Note: This method is inlined into the interpreter dispatch loop."<br> <sharedCodeNamed: 'commonSend' inCase: 131><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 = '#foo') ifTrue: [ self print: 'the message foo was called'; 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't work is (messageSelector = '#foo') <br>I tried several things but I don'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>