Hi Levente,  Hi David,<br><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 1:57 PM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wed, 20 Apr 2011, Andreas Raab wrote:<br>
<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On 4/20/2011 14:29, Mariano Martinez Peck wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
CompiledMethod &gt;&gt; valueWithReceiver: aReceiver arguments: anArray<br>
    &quot;Execute compiledMethod against the receiver and args in argArray. The receiver is the CompiledMethod&quot;<br>
<br>
&lt;primitive: 666&gt;<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>
</blockquote>
<br>
Which by the way, is the primitive that should exist, and Object&gt;&gt;withArgs:executeMethod: should be nuked ASAP. There is no reason to pollute the Object namespace any more than absolutely necessary.<br>
</blockquote>
<br></div></div>
The solution already exists in Cog: primitive 188 can accept a third argument - the receiver, but it doesn&#39;t work if the CompiledMethod is quick. In this case the VM crashes. It does work with &quot;normal&quot; methods.<br>

<br>
I prepared an image with a workspace in it demonstrating the bug:<br>
<a href="http://leves.web.elte.hu/squeak/primitive188bug.zip" target="_blank">http://leves.web.elte.hu/squeak/primitive188bug.zip</a><br>
<br>
If primitive 188 works reliably, then this feature can be added to the interpreter VM too.<br></blockquote><div><br></div><div>Levente, this is fixed in VMMaker.oscog-eem.75 &amp; <a href="http://www.mirandabanda.org/files/Cog/VM/VM.r2394/">http://www.mirandabanda.org/files/Cog/VM/VM.r2394/</a>.  David, the VMMaker package contains a putative fix for Interpreter.  Feel free to integrate it into the interpreter.</div>
<div><br></div><div>best,</div><div>Eliot</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
Levente<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Cheers,<br>
 - Andreas<br>
<br>
<br>
</blockquote>
</blockquote></div><br>