[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with (open

 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

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.