<html><head></head><body><div class="ydpe322f8dyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div><div><div><div><span><div>Interesting!</div></span></div><div><span></span><br></div><div><br></div><div>As a comparison:</div><div><br></div><div>Squeak 5.2<br></div></div><span><div><div>(0 to: 1) = (0 to: 5/3). "true"</div><div>(0 to: 1) hash = (0 to: 5/3) hash. "false"</div></div></span></div><div class="ydpe322f8dsignature"><div><span><div><br></div><div>Dolphin 7</div></span></div><span><span><div><div>(0 to: 1) = (0 to: 5/3). "true"</div><div>(0 to: 1) hash = (0 to: 5/3) hash. "false"</div><div><br></div><div>VisualWorks 8.1.1</div><div><span>(0 to: 1) = (0 to: 5/3). "true"<br></span><div><span>(0 to: 1) hash = (0 to: 5/3) hash. "true"</span></div><div><span><br></span></div><div><span>Pharo 5.0</span></div><div><span><span>(0 to: 1) = (0 to: 5/3). "true"<br>(0 to: 1) hash = (0 to: 5/3) hash. "false"</span><br></span></div><div><span><br></span></div><div><span>I don't have VAST installed on the PC I'm using right now.  I'd be curious to see how other Smalltalk and/or GemStone handle this?  So far (according to what I could test, only VW is right (according to the ANSI standard and just plain logic!)<br></span></div><div><span><br></span></div><div><span>I wonder how much code relies on this "behavior" out there!</span></div><div><span><br></span></div><div><span>But the ANSI Smalltalk draft is very clear on this (revision 1.9, page 53, <a href="http://wiki.squeak.org/squeak/uploads/172/standard_v1_9-indexed.pdf" rel="nofollow" target="_blank">http://wiki.squeak.org/squeak/uploads/172/standard_v1_9-indexed.pdf</a>):</span></div><div><span><br></span></div><div><span><span>"If the value of receiver = comparand is true then the receiver and comparand *must* have equivalent hash values.</span>"</span></div><div><span><br></span></div><div><span>That's what I always thought (or was taught or even read in the Blue Book).  Was this something that was changed at some point???</span></div><div><span><br></span></div></div><div><br></div></div></span></span>---------------- <br>BenoĆ®t St-Jean <br>Yahoo! Messenger: bstjean
 <br>Twitter: @BenLeChialeux
 <br>Pinterest: benoitstjean
 <br>Instagram: Chef_Benito<br>IRC: lamneth
 <br>Blogue: endormitoire.wordpress.com
 <br>"A standpoint is an intellectual horizon of radius zero".  (A. Einstein)</div></div></div><div><br></div></body></html>