Hi Gabriel,<div><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 7:41 AM, Gabriel Hernán Barbuto <span dir="ltr">&lt;<a href="mailto:gbarbuto@gmail.com">gbarbuto@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hi<br>
<br>
I am working with the InterpreterSimulator and I would like to send a<br>
message to an object inside the simulated environment. For example, I<br>
have the oop for true and I want to send it the message printString.<br>
<br>
My question is if this is possible. I don&#39;t know if there is a way to<br>
send a message to an object inside the simulation. I have thought<br>
about tinkering with the stack and calling an interpreter method. But<br>
I am not sure if this will work.<br></blockquote><div><br></div><div>I&#39;m sure you could get it to work. To send printString to true simply push true, set messageSelector to printString (there are methods to search for strings to track down the selector) and argumentCount to 0 and send commonSend.  There are all sorts of issues.  Is the VM at a suspension point?  Will the stack be balanced?  What if a process switch happens during your message?  How can you collect the result?  But these al have answers.</div>
<div><br></div><div>What are you actually trying to do?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Any hint will be much appreciated. Thanks in advance.<br>
<font color="#888888"><br>
Gabriel<br>
</font></blockquote></div><br></div>