On Tue, 1 Apr 2003, Michael Lazzaro wrote:
> As I said before, I would strongly doubt that there will be an .id
> method _at all_ on any builtin types/classes -- because unless we used
> memory location as the id, it would imply that a separate id had to be
> calculated and stored with each object, which would be expensive, and
> if we _did_ use mem location as the id, getting and storing the id
> would be largely useless, since it could change unpredictably.
>
> So I would imagine it _is_ possible to test that two values "have the
> same identity", but I would imagine it is -not- possible to actually
> get what that identity "is".  There's no .id method, per se, unless you
> create one yourself.

What about the \ (reference) operator?  If you take two references to an
object, they should compare the same, right?

~ John Williams



Reply via email to