User Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cl:functions:make-broadcast-stream [2019/06/15 02:00]
cl:functions:make-broadcast-stream [2019/11/19 12:00] (current)
Line 1: Line 1:
 +====== Function MAKE-BROADCAST-STREAM ======
 +
 +====Syntax====
 +  * **make-broadcast-stream** ''&​rest''​ //streams// → //​broadcast-stream//​
 +
 +====Arguments and Values====
 +  * //stream// - an //​[[CL:​Glossary:​output]]//​ //​[[CL:​Glossary:​stream]]//​.
 +  * //​broadcast-stream//​ - a //​[[CL:​Glossary:​broadcast stream]]//.
 +
 +====Description====
 +Returns a //​[[CL:​Glossary:​broadcast stream]]//.
 +
 +====Examples====
 +<​blockquote> ​
 +([[CL:​Macros:​defparameter]] *a-stream* ([[CL:​Functions:​make-string-input-stream]] "​*a-stream*"​)) <​r>​*A-STREAM* </r>
 +([[CL:​Macros:​defparameter]] *b-stream* ([[CL:​Functions:​make-string-input-stream]] "​*b-stream*"​)) <​r>​*B-STREAM*</​r>​
 +([[CL:​Functions:​format]] (make-broadcast-stream *a-stream* *b-stream*) "this will go to both streams"​) <​r>​[[CL:​Constant Variables:​NIL]] </r>
 +([[CL:​Functions:​get-output-stream-string]] a-stream) <​r>"​this will go to both streams"​ </r>
 +([[CL:​Functions:​get-output-stream-string]] b-stream) <​r>"​this will go to both streams"​ </r>
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal an //​[[CL:​Glossary:​error]]//​ of type **[[CL:​Types:​type-error]]** if //stream// is not an //​[[CL:​Glossary:​output]]//​ //​[[CL:​Glossary:​stream]]//​.
 +
 +====See Also====
 +  * **[[CL:​Functions:​broadcast-stream-streams|Function BROADCAST-STREAM-STREAMS]]**
 +
 +====Notes====
 +None.
 +
 +\issue{STREAM-ACCESS:​ADD-TYPES-ACCESSORS}