《通链参考手册》


Function MAKE-TWO-WAY-STREAM

●语法设定:

make-two-way-stream input-stream output-stream => two-way-stream

●参数和值:

input-stream---a stream.

output-stream---a stream.

two-way-stream---a two-way stream.

●详情:

Returns a two-way stream that gets its input from input-stream and sends its output to output-stream.

●例子:

 (with-output-to-string (out)
    (with-input-from-string (in "input...")
      (let ((two (make-two-way-stream in out)))
        (format two "output...")
        (setq what-is-read (read two))))) =>  "output..."
 what-is-read =>  INPUT... 

●副作用: None.

●受制于: 无。

●例外情况:

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

●更多信息: None.

●说明: 无。


X3J13设计清单非标准部分,可查下面章节:


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案