From ... From: Erik Naggum Subject: Re: strings and characters Date: 2000/03/18 Message-ID: <3162358302244558@naggum.no>#1/1 X-Deja-AN: 599089408 References: <3162184639382952@naggum.no> <3162300918453715@naggum.no> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 953371147 23439 195.0.192.66 (18 Mar 2000 09:19:07 GMT) Organization: Naggum Software; vox: +47 8800 8879; fax: +47 8800 8601; http://www.naggum.no User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 18 Mar 2000 09:19:07 GMT Newsgroups: comp.lang.lisp * Tim Bradshaw | Which is precisely what I want to avoid unfortunately, as it means that | either this code or the code that calls it has to deal with the issue of | copying strings too and from arrays of (UNSIGNED-BYTE 8)s, which simply | brings back the same problem somewhere else. in this case, I'd talk to my vendor or dig deep in the implementation to find a way to transmogrify an (unsigned-byte 8) vector to a character vector by smashing the type codes instead of copying the data. (this is just like change-class for vectors.) barring bivalent streams that can accept either kind of vector (coming soon to an implementation near you), having to deal with annoyingly stupid or particular external requirements means it's OK to be less than nice at the interface level, provided it's done safely. #:Erik