<br><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 10:26 AM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.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><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 6:44 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.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><br><div class="gmail_quote">On Wed, Oct 12, 2011 at 8:38 AM, Levente Uzonyi <span dir="ltr">&lt;<a href="mailto:leves@elte.hu" target="_blank">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><div></div><div>On Wed, 12 Oct 2011, Clara Allende wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys,<br>
<br>
I&#39;m wondering, why?<br>
<br>
ProtoObject&gt;&gt; ~~ anObject<br>
   &quot;Answer whether the receiver and the argument are not the same object<br>
   (do not have the same object pointer).&quot;<br>
<br>
   self == anObject<br>
       ifTrue: [^ false]<br>
       ifFalse: [^ true]<br>
<br>
Instead of:<br>
ProtoObject&gt;&gt; ~~ anObject<br>
   &quot;Answer whether the receiver and the argument are not the same object<br>
   (do not have the same object pointer).&quot;<br>
<br>
   ^(self == anObject) not<br>
<br>
And why?<br>
Object &gt;&gt; ~= anObject<br>
   &quot;Answer whether the receiver and the argument do not represent the<br>
   same object.&quot;<br>
<br>
   ^self = anObject == false<br>
<br>
Instead of<br>
Object&gt;&gt; ~= anObject<br>
   &quot;Answer whether the receiver and the argument do not represent the<br>
   same object.&quot;<br>
<br>
   ^(self = anObject) not.<br>
<br>
Is there any particular reason for this that I&#39;m missing?<br>
</blockquote>
<br></div></div>
Performance.<br></blockquote><div><br></div><div>But better still is to add a ~~ primitive.  I did this for VisualWorks.  e.g. primitive 150 is free.  why don&#39;t we use that for 1.4/4.3?</div><div> </div></div></blockquote>

<div><br>with or without special bytecode associated?<br></div></div></blockquote><div><br></div><div>Initially without.  Dynamic frequency is low, and primitive adds significant performance over the non-primitive version.  One could use the blockCopy: special bytecode but I&#39;d wait until doing a complete bytecode set redesign.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="gmail_quote"><div><br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div class="gmail_quote">
<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">
Thanks in advance!<br>
-- <br>
<br>
&quot;*Most good programmers do programming not because they expect to get paid<br>
or get adulation by the public, but because it is fun to program.*&quot;<br>
<br>
Linus Torvalds<br>
<br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div><br>