Subject: Re: what should replace the old `int-char' fn?
From: Erik Naggum <>
Date: 1999/01/17
Newsgroups: comp.lang.lisp
Message-ID: <>

* David Bakhash <>
| I noticed that a function I use called int-char is deprecated.  So what
| should I use in it's place, to solve a similar problem?

  CODE-CHAR.  it's the inverse of CHAR-CODE, which returns the same value
  as CHAR-INT in the absence of implementation-defined attributes (fonts,

| specifically, I'd like to create a table of all the characters that tend
| to come up in ASCII documents, e.g. alpha-numerics (both cases),
| punctuation, etc.  I was using a loop + (int-char i) to get them.  Now
| what?

  readtables and the like contain vectors of CHAR-CODE-LIMIT length and
  look up stuff directly based on the CHAR-CODE of the character.

  (note: Allegro CL has a confusing value of CHAR-CODE-LIMIT because of an
  "international" version (Japanese, really, just as "international" as
  MULE in Emacs) that uses 16-bit character codes internally.  the real

  SIGTHTBABW: a signal sent from Unix to its programmers at random
  intervals to make them remember that There Has To Be A Better Way.