From ... From: Erik Naggum Subject: Re: q. on reading bytes from "BIDIRECTIONAL-TERMINAL-STREAM" Date: 2000/08/23 Message-ID: <3176015533325327@naggum.net>#1/1 X-Deja-AN: 661505924 References: <39A1D958.14924444@spam.com> <39A31D18.7024041C@spam.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 967032281 20322 195.0.192.66 (23 Aug 2000 12:04:41 GMT) Organization: Naggum Software; vox: +47 800 35477; gsm: +47 93 256 360; fax: +47 93 270 868; http://naggum.no; http://naggum.net User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7 Mime-Version: 1.0 NNTP-Posting-Date: 23 Aug 2000 12:04:41 GMT Newsgroups: comp.lang.lisp * Richard James Panturis Giuly | If you know how I can convert a character to an integer that would | be fine too, I just thought converting every byte might be | inefficient. The function char-code returns the integer code of the character. It's essential a type-changing function, as both characters and integers are immediate values, and at least in Allegro CL is a simple bit-shift operation if you declare the character's type. #:Erik -- If this is not what you expected, please alter your expectations.