[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Object identity
From: |
Barry Margolin |
Subject: |
Re: Object identity |
Date: |
Tue, 21 Oct 2003 21:39:51 GMT |
In article <jwv7k2y5mpb.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca>,
Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>> > 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.
>
>Might be confusing, but after all, it's a behavior that can appear
>even with a "real" implementation of print-unreadable-object.
The point of the hash table is to remember the ID between calls to
print-unreadable-object, so that the same object will usually be printed
the same way. If you flush it at the end of each call, it will never
contain anything!
--
Barry Margolin, barry.margolin@level3.com
Level(3), Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
- Re: Object identity, (continued)
- Re: Object identity, Lars Brinkhoff, 2003/10/21
- Message not available