[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Object identity

From: Stefan Monnier
Subject: Re: Object identity
Date: Tue, 21 Oct 2003 15:09:06 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> (Would emacs-devel be a more appropriate list to post this?)
> Is there a function, say object-identity, in Emacs Lisp that maps an
> object to a unique value (other than the object itself)?  For example,

I don't think there's such a thing, although it'd be easy to add given the
current non-copying GC.  On another hand, I'm wondering what you want it
for.  The only use I know of for such a feature is to implement a hash-table
with a cheap hash function, but obviously, that's not your goal since that
is already provided.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]