[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue: PRINT-CIRCLE-STRUCTURE (Version 1)
- To: Moon@STONY-BROOK.SCRC.Symbolics.COM
- Subject: Issue: PRINT-CIRCLE-STRUCTURE (Version 1)
- From: Jon L White <email@example.com>
- Date: Fri, 7 Oct 88 18:35:06 PDT
- Cc: firstname.lastname@example.org, Christopher.McConnell@A.GP.CS.CMU.EDU
- In-reply-to: David A. Moon's message of Fri, 7 Oct 88 00:22 EDT <19881007042246.8.MOON@EUPHRATES.SCRC.Symbolics.COM>
re: Date: 5 Oct 88 20:47 PDT
Circularities need only be detected for
objects that would normally be printed by the default structure
I cannot accept any proposal with this kludgey restriction in it. If
circularities are going to be detected at all, they should be done
right. It's not difficult to call the user-defined print-function once
with a special stream argument that detects what the function prints
(i.e. what calls to WRITE and equivalent functions and FORMAT directives
it makes using that stream), and use that for circularity detection.
That's how the Symbolics Genera implementation works.
A "first cut" implementation is merely to descend all components of objects
when looking for circularities. At worst this will cause spurious #n='s
to appear in the output (which CLtL doesn't seem to proscribe), and may
impose some extra traffic on the "looker" (probably a hash-table).
-- JonL --