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: bromage@cs.mu.OZ.AU (Andrew Bromage)
Date: 30 Apr 1997 11:29:40 +1000
Organization: Comp Sci, University of Melbourne
G'day all.

doylep@ecf.toronto.edu (Patrick Doyle) writes:

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

They may need to be distinguished for the purpose of compile-time
garbage collection.  If you create two immutable identical objects,
it may be easier to discover when they become garbage because the
references to them are unique, than if they were one object with
a shared reference.

Admittedly the programmer does not necessarily need to see this.

Cheers,
Andrew Bromage

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