[Top][All Lists]

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

Re: print-circle and describe-variable

From: Chong Yidong
Subject: Re: print-circle and describe-variable
Date: Mon, 09 Apr 2007 19:08:25 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux)

"Lennart Borgman (gmail)" <address@hidden> writes:

> Stefan Monnier wrote:
>>> But we do believe that print-circle makes it possible to print out
>>> recursive structures, or? And we do not believe that it disturbs printing
>>> out non-recursive structures (except that it gets a bit slower), or?
>> Actually, I believe it does affect printing non-circular structures in more
>> ways than just by making it slower.
>> Try (let ((print-circle t) (toto (list 2))) (prin1 (list toto toto)))
>> In some cases, this is a good feature, but in many other cases it can be
>> very confusing.
> Interesting, but is not that just another bug?

Nope.  When print-circle is on, the printer takes note of shared
substructures.  It's just that in this case, taking note of shared
substructure obfuscates the value.

reply via email to

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