> * Raymond Toy <[EMAIL PROTECTED]> [2005-01-27 11:17:13 -0500]:
>
>>>>>> "Sam" == Sam Steingold <[EMAIL PROTECTED]> writes:
>
>     Sam> Is it possible to mix binary & text i/o in CMUCL?
>     Sam> (either via bivalent streams like ACL and LW,
>     Sam> or (SETF STREAM-ELEMENT-TYPE) like in CLISP)
>
> simple-streams will let you do that, I think.  Lynn Quam has some
> patches that will allow that with lisp streams.

ok, so how do I create a bivalent stream?

(require :simple-streams)
(setq s (sys:make-fd-stream (ext:connect-to-inet-socket "ftp.gnu.org" 21)
                            :input t :output t)
      v (make-array 3 :element-type '(unsigned-byte 8)))
(read-sequence v s) ; error!
(read-line s)

-- 
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
If you try to fail, and succeed, which have you done?


Reply via email to