User Tools


Differences

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

Link to this comparison view

cl:functions:make-synonym-stream [2019/06/15 02:00]
cl:functions:make-synonym-stream [2019/09/18 01:00] (current)
Line 1: Line 1:
 +====== Function MAKE-SYNONYM-STREAM ======
 +
 +====Syntax====
 +  * **make-synonym-stream** //symbol// → //​synonym-stream//​
 +
 +====Arguments and Values====
 +  * //symbol// - a //​[[CL:​Glossary:​symbol]]//​ that names a //​[[CL:​Glossary:​dynamic variable]]//​.
 +  * //​synonym-stream//​ - a //​[[CL:​Glossary:​synonym stream]]//.
 +
 +====Description====
 +Returns a //​[[CL:​Glossary:​synonym stream]]// whose //​[[CL:​Glossary:​synonym stream symbol]]// is //symbol//.
 +
 +====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:​Macros:​defparameter]] *s-stream* (make-synonym-stream '​*c-stream*)) <​r>​*S-STREAM*</​r>​
 +*s-stream* <​r>#<​SYNONYM-STREAM for *C-STREAM*>​ </r>
 +([[CL:​Macros:​setf]] *c-stream* *a-stream*) <​r>#<​String Input Stream> </r>
 +([[CL:​Functions:​read]] *s-stream*) <​r>​*A-STREAM*</​r>​
 +([[CL:​Macros:​setf]] *c-stream* *b-stream*) <​r>#<​String Input Stream> </r>
 +([[CL:​Functions:​read]] *s-stream*) <​r>​*B-STREAM*</​r>​
 +</​blockquote>​
 +
 +====Side Effects====
 +None.
 +
 +====Affected By====
 +None.
 +
 +====Exceptional Situations====
 +Should signal **[[CL:​Types:​type-error]]** if its argument is not a //​[[CL:​Glossary:​symbol]]//​.
 +
 +====See Also====
 +  * {\secref\StreamConcepts}
 +
 +====Notes====
 +None.
 +
 +\issue{STREAM-ACCESS:​ADD-TYPES-ACCESSORS}