[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

character and string escapes

From: Mike Gran
Subject: character and string escapes
Date: Sat, 7 Feb 2009 09:14:39 -0800 (PST)


I find this behavior curious.

guile>  (integer->char 129)

guile> (write (integer->char 129))

guile> (write (string (integer->char 129)))

guile> #\x81
ERROR: In procedure scm_lreadr:
ERROR: standard input:8:1: unknown character name x81
ABORT: (read-error)

Why do strings use hex for unnamed control characters while 
characters use octal?

Also, r6rs likes hex characters.  Is that something that might be
added to Guile?  


Mike Gran

reply via email to

[Prev in Thread] Current Thread [Next in Thread]