[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
print question
- To: navajo!sandra%orion%cs.utah.edu@navajo.stanford.edu
- Subject: print question
- From: edsel!bhopal!jonl@navajo.stanford.edu (Jon L White)
- Date: Sun, 28 Jun 87 05:27:40 PDT
- Cc: navajo!common-lisp%sail.stanford.edu@navajo.stanford.edu
- In-reply-to: Sandra J Loosemore's message of Sat, 27 Jun 87 14:38:47 MDT <8706272038.AA23897@orion.utah.edu>
Although the MacLisp printer took care to insert "newline"'s ocasionally,
I finally came to believe that PRINT was the wrong place to handle this.
We ultimately made it a per-stream property -- whether or not to break
long lines -- but one thing I proposed for VAX/NIL and for Interlisp-D
(which I don't think ever got implemented) was to put the line-breaking
code into the stream. That is, some low-level byte-output method in a
stream would be paying attention so such matters of whether or not to
substitute a "newline" for an ocasional "space", in order to limit the
line length of the output [of course, you would still lose for long
sequences of characters that had no spaces at all in them]. The main
advantage of doing it "in the stream" is user-coded "printers" based
over WRITE-CHAR or WRITE-STRING would also get the benefit.
-- JonL --