[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with (open
- To: 72110.1107@CompuServe.COM
- Subject: Re: Problems with (open
- From: "Mark A. Tapia" <markt@dgp.toronto.edu>
- Date: Mon, 20 Jul 1992 18:58:42 -0400
- Cc: info-mcl@cambridge.apple.com
Bruce Lester <72110.1107@CompuServe.COM> writes about problems with
opening a stream with an element-type of :unsigned-byte.
Does anyone know why this does not work?
? (setf a (open "test" :direction :io :if-exists :overwrite
:element-type :unsigned-byte))
> Error: Unbound variable: UNSIGNED-BYTE
> While executing: SYMBOL-VALUE
The newer version of MCL2.0f3 produces a more informative message:
> Error: value :UNSIGNED-BYTE is not of the expected type
(OR CHARACTER (SIGNED-BYTE 32) (UNSIGNED-BYTE 32))
This suggests either writing out one character at a time (after
encoding the byte as a character) and then reading it back in and
decoding it.