Subject: Re: strings and characters
From: Erik Naggum <>
Date: 2000/03/18
Newsgroups: comp.lang.lisp
Message-ID: <>

* 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.