<div dir="ltr">It used to work. In the Spur VM we shipped with Squeak 5.0 it works. The VM sources are from Feb 5 2015. With a recent VM, the primitive fails, indeed.<div><br></div><div>- Bert -<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 3:14 PM, Clément Bera <span dir="ltr"><<a href="mailto:bera.clement@gmail.com" target="_blank">bera.clement@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br><div dir="ltr">Hi Denis,<div><br></div><div>In the VM the comment for primitive 118 is the following:</div><div><br></div><div><div><font face="monospace, monospace">"Implement either ProtoObject>>tryPrimitive: primIndex withArgs: argArray</font></div><div><font face="monospace, monospace"><span class="gmail-m_-6542556562852257910gmail-Apple-tab-span" style="white-space:pre-wrap">        </span> or Context>>receiver: anObject tryPrimitive: primIndex withArgs: argArray.</font></div><div><font face="monospace, monospace"><span class="gmail-m_-6542556562852257910gmail-Apple-tab-span" style="white-space:pre-wrap">      </span> If this primitive fails, arrange that its error code is a negative integer, to</font></div><div><font face="monospace, monospace"><span class="gmail-m_-6542556562852257910gmail-Apple-tab-span" style="white-space:pre-wrap">        </span> distinguish between this failing and the primitive it invokes failing."</font></div></div><div><br></div><div>So mirror logic for primitive 118 should already be supported.</div><div><br></div><div>However when I try it...</div><div><br></div><div><font face="monospace, monospace">Mirror new receiver: 20 tryPrimitive: 1 withArgs: { 22 }</font> => primitive failed<br></div><div><br></div><div><font face="monospace, monospace">20 tryPrimitive: 1 withArgs: { 22 }</font> => 42<br></div><div><br></div><div>So I think it's a bug that should be fixed.</div><div><br></div><div>Thanks for reporting.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 1:40 PM, Denis Kudriashov <span dir="ltr"><<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br><div dir="ltr">Hi.<div><br></div><div>Right now prim 118 is probably only reflective call which not support mirror logic.</div><div>It named #tryPrimitive:withArguments:. And it fails when it is called with receiver as first argument.</div><div>Can we add support for it?</div><div><br></div><div>The reason why I ask is because now any proxy should define this method to support debugger.</div><div><br></div><div>Best regards,</div><div>Denis</div></div>
<br></blockquote></div><br></div>
<br></blockquote></div><br></div></div></div>