<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 26.05.2012, at 10:38, Mariano Martinez Peck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Sat, May 26, 2012 at 3:21 AM, Sean P. DeNigris <span dir="ltr">&lt;<a href="mailto:sean@clipperadams.com" target="_blank">sean@clipperadams.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>
<br>
Mariano Martinez Peck wrote<br>
<div class="im">&gt;<br>
&gt; yes it receieves! two arguments indeed<br>
&gt;<br>
</div>plus self is passed implicitly first, right?<br>
<br></blockquote><div><br>You see? we start to help us each other :)<br>yes, the receiver is always put in the stack "implicitly"</div></div></blockquote><div><br></div><div>And and self is put on the stack firs, then the other arguments. So if the primitive only wants to return self, it just pops the 2 arguments off the stack. If it needs to return something else, it also has to pop off self.</div><br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex; position: static; z-index: auto; "><div class="im">How did you "browse the image" for the primitive? I ended up searching</div>
sources for "&lt;primitive: 249&gt;". Is there a better/faster way?<br>
<br></blockquote><div><br>That's one slow possibily and the hacky and fast one is: CompiledMethod allInstances select: [:each | each primitive = 249]<br>&nbsp;</div></div></blockquote><br></div><div>Or the less hacky, equally fast</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SystemNavigation default browseAllSelect: [:m | m primitive = 249]</div><br><div apple-content-edited="true">
<div style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><span class="Apple-style-span" style="font-size: 12px; "><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>