[Openmcl-devel] make-symbol with uppercase/lowercase strings --

Waldek Hebisch hebisch at math.uni.wroc.pl
Mon Jan 14 13:56:40 PST 2013


> 
> --===============3555788918753734396==
> Content-Type: multipart/alternative; boundary=047d7b3398876cd53b04d3462ecd
> 
> --047d7b3398876cd53b04d3462ecd
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hi all,
> 
> Does anyone know if there any predictability to this behavior in CCL?:
> 
>  CL-USER> (make-symbol "heynow")
> #:|heynow|
> CL-USER> (make-symbol "HEYnOW")
> #:HEY\nOW
> CL-USER> (make-symbol "HEYnoW")
> #:|HEYnoW|

Which part of above bothers you?  CCL is making symbols with name
you gave it.  To print them correctly some escaping (either
vertical bars or backslahes) is needed.  Apparently CCL chooses
shortest correct form, with ties in favour of bars -- in your
case uses backslash when only one character needs escaping
but bars otherwise.

-- 
                              Waldek Hebisch
hebisch at math.uni.wroc.pl 



More information about the Openmcl-devel mailing list