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.)
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: printing circular data structures ... I want to be able to print out data structures,...environment blow up if the data structure is circular.... I wish it was possible to retract Google Groups messages withing some ... (comp.lang.lisp)
Re: DOC file format ... M$ is very protective of it and you generally have to have a really compelling reason for them to give you the format. ... It kind of operates on a hybrid between HTML and pure C++ object-oriented code - with a little general file system flaire thrown in. ... The text of the document is stored in various data structures. ... However, I am more interested in knowing how is the meta-data stored in the document (edition time, author, number of times it has been printed, and so on). ... (comp.programming)
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: Change function parameter from inside the function ... It is indeed possible to write functions that have side effects on components in data structures.... (format t "population after: ~A~%" population))) ... population after: xuther... ..this can be solved by making a copy of the original constant string... (comp.lang.lisp)