Re: printing circular data structures



Øyvin Halfdan Thuv <oyvinht@xxxxxxxxxxxxxxxxxxxxx> writes:

On 2007-11-30, Eli Bendersky <eliben@xxxxxxxxx> wrote:
[snip]

(setf *print-circle* t)

Or:

(let ((*print-circle* t))
... your code here ...
)

and the rest of your CL-environment will not be affected.

I sometimes get confused by the REPL behavior when lexically binding
printer control variables until I remember that they will have no
effect on the REPL's printing of the return value, so I have to put a
PRINT within the LET and return nothing in particular.

Zach
.