Re: printing circular data structures
- From: Øyvin Halfdan Thuv <oyvinht@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 10:40:48 +0000 (UTC)
On 2007-11-30, Eli Bendersky <eliben@xxxxxxxxx> wrote:
On Nov 30, 12:11 pm, Eli Bendersky <eli...@xxxxxxxxx> wrote:
Hello,
I want to be able to print out data structures, without having the
environment blow up if the data structure is circular. One way to do
this is to limit the amount of characters the printer prints. Is this
possible in Common Lisp ?
The implementation I'm using is CLISP, though I suspect there can be a
standard way, since I want it to work for all my printing functions
(print, format, etc.)
Ouch, sorry for bothering the newsgroup. Had I only tried one another
google search, I would quickly turn up with:
(setf *print-circle* t)
Or:
(let ((*print-circle* t))
... your code here ...
)
and the rest of your CL-environment will not be affected.
--
Oyvin
.
- Follow-Ups:
- Re: printing circular data structures
- From: Zach Beane
- Re: printing circular data structures
- References:
- printing circular data structures
- From: Eli Bendersky
- Re: printing circular data structures
- From: Eli Bendersky
- printing circular data structures
- Prev by Date: Re: The origins of CL conditions system
- Next by Date: Re: The origins of CL conditions system
- Previous by thread: Re: printing circular data structures
- Next by thread: Re: printing circular data structures
- Index(es):
Relevant Pages
|