File: display

package info (click to toggle)
scheme9 2025.08.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: lisp: 16,752; ansic: 11,869; sh: 806; makefile: 237; sed: 6
file content (15 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R4RS 6.10.3  (display object)              ==>  unspecific
             (display object output-port)  ==>  unspecific

Writes a representation of OBJECT to the given OUTPUT-PORT. Strings
that appear in the written representation are not enclosed in
double quotes, and no characters are escaped within those strings.
Character objects appear in the representation as if written by
write-char instead of by write. DISPLAY returns an unspecified
value. The OUTPUT-PORT argument may be omitted, in which case it
defaults to the value returned by CURRENT-OUTPUT-PORT.

Rationale: WRITE is intended for producing machine-readable output
and DISPLAY is for producing human-readable output. Implementations
that allow "slashification" within symbols will probably want WRITE
but not DISPLAY to slashify funny characters in symbols.