scsh-users
[Top] [All Lists]

Re: Object IDs are good ( was: Object IDs are bad )

To: scsh-news@martigny.ai.mit.edu
Subject: Re: Object IDs are good ( was: Object IDs are bad )
From: doylep@ecf.toronto.edu (Patrick Doyle)
Date: Tue, 29 Apr 1997 18:11:24 GMT
Organization: University of Toronto, Engineering Computing Facility
In article <5k1j3f$fp3@roar.cs.utexas.edu>,
Paul Wilson <wilson@cs.utexas.edu> wrote:
>In article <E9AxB1.7nA@ecf.toronto.edu>,
>Patrick Doyle <doylep@ecf.toronto.edu> wrote:
>>
>>I think if a language has the concept of mutability, then it should also
>>have the concept of object identity because both the cases presented in
>>the previous paragraph are very useful in different curcumstances.
>>
>>Of course if a language has no mutability, then object identity is
>>unnecessary.
>
>I'm not sure that even the latter is right.  It seems to me that it
>can be reasonable to use object identity to represent conceptual-level
>identities, even in purely functional programs.

  Can you give an example of two immutable objects, alike in every way,
which need to be distinguished?

 -PD
-- 
--
Patrick Doyle
doylep@ecf.utoronto.ca

<Prev in Thread] Current Thread [Next in Thread>