User Tools


Function MAKE-BROADCAST-STREAM

Syntax

  • make-broadcast-stream &rest streamsbroadcast-stream

Arguments and Values

Description

Returns a broadcast stream.

Examples

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

*A-STREAM*

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

*B-STREAM*

(format (make-broadcast-stream *a-stream* *b-stream*) "this will go to both streams")

NIL

(get-output-stream-string a-stream)

"this will go to both streams"

(get-output-stream-string b-stream)

"this will go to both streams"

Side Effects

None.

Affected By

None.

Exceptional Situations

Should signal an error of type type-error if stream is not an output stream.

See Also

Notes

None.

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