Re: code critique



Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx> writes:
Richard M Kreuter <kreuter@xxxxxxxxx> writes:
Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx> writes:

There are NO other character in the ASCII character set. There
are a few control codes in the ASCII codes.

ANSI Common Lisp clearly classifies as characters a handful of
entities that you're discounting: Backspace, Tab, Linefeed, Page,
Return, and Rubout.

Yes, and interestingly, there's not a 1-1 correspondance between some
of these "characters" and the ASCII codes used to represent them,
since the #\newline "character" can correspond to a sequence of TWO
ASCII codes: #(13 10).

This is precisely why I left Newline out of that list. Backspace,
Tab, Linefeed, Page, Return, and Rubout, intuitively map bijectively
to ASCII's bs, ht, nl, np, cr, and del, respectively.
.



Relevant Pages

  • Re: Simple program: who can write a shorter code?
    ... (defun foo (string) ... The only sure way to get ASCII would be to write your own ASCII-CODE ... function to translate characters into their ASCII codes. ...
    (comp.lang.lisp)
  • Re: Writing extended ascii characters to text file.
    ... John ... so in order to get real ASCII codes you should use the GetBytes ... >> I am just trying to port an existing simple encryption routine to C#. ... >> however when I encrypt the file, several characters are corrupted. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Simple program: who can write a shorter code?
    ... (defun foo (string) ... The only sure way to get ASCII would be to write your own ASCII-CODE ... function to translate characters into their ASCII codes. ...
    (comp.lang.lisp)
  • Re: "a" or "an" before "h----"
    ... I fear not, as plain text means "characters with the ASCII codes 0--127, ... moved beyond ASCII codes 0--127 as The One And Only Standard, ...
    (alt.usage.english)
  • UTF8/UTF7/ASCII problem while reading from text file
    ... The file contains characters with ASCII codes above 128. ... UTF7 encoding reads everything ok, except eats the + signs, and some ...
    (microsoft.public.dotnet.languages.csharp)