[Openmcl-devel] "UNSGIGNED-BYTE" typo.

Kaz Kylheku kaz at kylheku.com
Wed Oct 13 09:55:45 PDT 2010


$ ccl
Welcome to Clozure Common Lisp Version 1.5-r13651 (LinuxX8632)!
? (decode-string-from-octets #(1 2 3) :external-format :utf-8)
> Error: value # is not of the expected type (ARRAY (CCL::UNSGIGNED-BYTE
8) (*)).

But decode-string-from-octets does actually work if you give it an 
array
whose :element-type is (unsigned-byte 8).

How do you get bad spelling from a good type check?

By checking the typecode explicitly and using a "dead list"
to generate the error condition.

P.S.

Does the mailing list really need the [subject line marker] disease? 
You can easily  tell that it's list-related traffic if "openmcl-devel" 
is a to: or cc: recipient.




More information about the Openmcl-devel mailing list