<br><br><div class="gmail_quote">On Wed, Mar 30, 2011 at 8:55 PM, Levente Uzonyi <span dir="ltr"><<a href="mailto:leves@elte.hu">leves@elte.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Wed, 30 Mar 2011, Mariano Martinez Peck wrote:<br>
<br></div>
(no quotes)<br>
</blockquote><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
It's pure smalltalk code. 'foobar' is a ByteString and it will execute a method of ByteArray. The method is called #atAllPut: and it will be evaluated with the argument 65.<br><font color="#888888">
<br></font></blockquote><div><br>
Sorry for the late answer. I think you didn't understand what I asked or I didn't understand your answer.<br>
<br>In that example, you are SENDING the message withArgs:executeMethod: to the receiver.<br><br>What I need is this...imagine I have Message instance, and I need to do a #sendTo: but WITHOUT using the receiver but instead sending it by parameter.<br>
I cannot do: aMessage sendTo: aReceiver<br>because<br><br>sendTo: receiver<br> "answer the result of sending this message to receiver"<br><br> ^ receiver perform: selector withArguments: args<br><br clear="all">
<br>So...as you can see, #sendTo sends a message to the receiver, which I cannot. <br>Instead of delegating to the receiver, I need someting like this:<br><br><br>CompiledMethod >> valueWithReceiver: aReceiver arguments: anArray <br>
"Execute compiledMethod against the <span class="il">receiver</span> and args in argArray. The <span class="il">receiver</span> is the CompiledMethod"<br><br> <primitive: 666><br> self primitiveFailed<br>
<br><br>Where the primitive is send directly, and not a message to the receiver.<br><br>Is something like this available or I would need to create a new primitive?<br><br>Thanks in advance,<br><br></div></div>-- <br>Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>