User Tools


Function MAKE-SYNONYM-STREAM

Syntax

  • make-synonym-stream symbolsynonym-stream

Arguments and Values

Description

Returns a synonym stream whose synonym stream symbol is symbol.

Examples

(defparameter *a-stream* (make-string-input-stream "*a-stream*"))

*A-STREAM*

(defparameter *b-stream* (make-string-input-stream "*b-stream*"))

*B-STREAM*

(defparameter *s-stream* (make-synonym-stream '*c-stream*))

*S-STREAM*

*s-stream*

#<SYNONYM-STREAM for *C-STREAM*>

(setf *c-stream* *a-stream*)

#<String Input Stream>

(read *s-stream*)

*A-STREAM*

(setf *c-stream* *b-stream*)

#<String Input Stream>

(read *s-stream*)

*B-STREAM*

Side Effects

None.

Affected By

None.

Exceptional Situations

Should signal type-error if its argument is not a symbol.

See Also

  • {\secref\StreamConcepts}

Notes

None.

\issue{STREAM-ACCESS:ADD-TYPES-ACCESSORS}