<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Bert Freudenberg wrote:
<blockquote
 cite="mid:780CFD94-D7A9-4C96-A2A5-4C01D42B06EC@freudenbergs.de"
 type="cite">
  <pre wrap="">Am 07.01.2012 um 07:04 schrieb Ben Coman <a class="moz-txt-link-rfc2396E" href="mailto:btc@openInWorld.com">&lt;btc@openInWorld.com&gt;</a>:
  </pre>
  <blockquote type="cite">
    <pre wrap="">I had thought that the two assignments of 'xxx' to (x) and (y) would result in different objects, but they turn out to be identical.  It is like the compiler has noticed that they are equal and chosen to make them identical.  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
That is indeed what's happening. 

You can verify this by executing each line separately. 
  </pre>
</blockquote>
Thanks Bert. Doing that is insightful.&nbsp; Interestingly the result is
different with numbers.&nbsp; Where strings assigned in separate executions
are not identical, numbers assigned in separate executions are
identical - at lower values.&nbsp; For example, number 12345678 has (x) and
(y) identical but with 123456789 they are not.&nbsp; I then expected those
number literals to be a different class, but both numbers inspect as
SmallIntegers.&nbsp; btw this is with Pharo-1.3-13315-cog2522.&nbsp; <br>
<br>
Anyway, my curiosity is satisfied for now.<br>
cheers, Ben<br>
</body>
</html>