<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-Apple-tab-span" style="white-space:pre">       </span> or Context>>receiver: anObject tryPrimitive: primIndex withArgs: argArray.</font></div><div><font face="monospace, monospace"><span class="gmail-Apple-tab-span" style="white-space:pre">       </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-Apple-tab-span" style="white-space:pre"> </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:0 0 0 .8ex;border-left:1px #ccc solid;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>