Re: printing circular data structures



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)

I wish it was possible to retract Google Groups messages withing some
short time of posting :-)

Sorry again,
Eli



.



Relevant Pages

  • Re: printing circular data structures
    ... I want to be able to print out data structures, ... environment blow up if the data structure is circular. ... You can also provide a more specific print-object method? ... (defmethod print-object ((mc my-class) ...
    (comp.lang.lisp)
  • Re: printing circular data structures
    ... I want to be able to print out data structures, ... environment blow up if the data structure is circular. ... (print, format, etc.) ...
    (comp.lang.lisp)
  • Re: Armstrong and Virdings One Pass GC
    ... >>Languages with non-mutable data structures will never get circular ... > data structures *with strict semantics*, as any circular definition ... of cycles is statically known (you can't write a function which makes ...
    (comp.lang.functional)
  • Re: Armstrong and Virdings One Pass GC
    ... Robert Virding wrote: ... >Well we have no circular references in Erlang and still manage to do ... data structures *with strict semantics*, ...
    (comp.lang.functional)
  • printing circular data structures
    ... I want to be able to print out data structures, ... environment blow up if the data structure is circular. ... (print, format, etc.) ...
    (comp.lang.lisp)