[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Object identity
From: |
Lars Brinkhoff |
Subject: |
Re: Object identity |
Date: |
21 Oct 2003 22:13:20 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > Well, either I need weak hash tables, or a different implementation
> > of object-identity.
> Given your particular situation, you can just flush your hash-table at the
> end of print-unreadable-object, so it does not even need to be weak.
Yes, but that would print eq objects differently between two
subsequent calls to print-unreadable-object, which probably would
confuse the user. I might almost as well print "0" for all object
identities.
Flushing somewhat less often (for some value of "less") would be good
enough, I think. It's not like all objects are in the hash table, so
the memory overhead isn't large.
--
Lars Brinkhoff, Services for Unix, Linux, GCC, HTTP
Brinkhoff Consulting http://www.brinkhoff.se/
- Re: Object identity, (continued)