|printing recursive objects? firstname.lastname@example.org (Paul Haahr) (1993-05-03)|
|Re: printing recursive objects? email@example.com (John Lacey) (1993-05-04)|
|printing recursive objects? firstname.lastname@example.org (Tony Kanawati) (1993-05-04)|
|printing recursive objects? email@example.com (1993-05-05)|
|From:||Paul Haahr <firstname.lastname@example.org>|
|Date:||Mon, 3 May 1993 17:10:43 GMT|
Given an arbitrary recursive structure, say a lisp sexpr, how do you print
it in a form that can be read back to create the same structure?
For example, given the scheme expression
(let ((x (cons 'a nil))) (set-cdr! x x) x)
how do I print some scheme expression that, when interpreted, creates the
same structure, rather than just a lot of ``a''s?
I know that there must be some literature on this subject, but I don't
know where it is. Any pointers would be appreciated.
paul haahr adobe systems incorporated
email@example.com ...!decwrl!adobe!haahr +1 415 962 6056
Return to the
Search the comp.compilers archives again.