identity in Squeak

Andrew C. Greenberg werdna at mucow.com
Tue Jun 18 01:17:49 UTC 2002


Well, yes and no.  They are the same object when compiled in the same 
lexical context, but not otherwise.  For example, if you execute each 
line in a workspace, selecting all the lines, you will get the same 
result.  On the other hand, if you execute each line in a workspace, BUT 
ONLY ONE AT A TIME IN SEQUENCE, you will get a different result.

On Sunday, June 16, 2002, at 11:45 AM, Martin Drautzburg wrote:

> This shows that they are really one and the same object:
>
> |a b |
> a _ 'foo'.
> b_ 'foo'.
> a at:1 put: $x.
> b
>
> prints xoo
>




More information about the Squeak-dev mailing list