[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 21:22:09 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>> > 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.
Another possibility is to print a random number, which simulates the
behavior were a copying GC is called everytime and moves everything around
all the time.
Stefan
- Re: Object identity, (continued)
Re: Object identity, Barry Margolin, 2003/10/21
Re: Object identity, Lars Brinkhoff, 2003/10/21
Message not available