From: Russell M. <rus...@ya...> - 2005-02-09 16:56:10
|
"Hoehle, Joerg-Cyril" <Joe...@t-...> writes: > Hi, > Russell wrote: >> `(let ((,.s ,s)) >>(get-macro-character #\.) returns NIL,NIL and so does >>(get-macro-character #\s), which leads me to believe that a leading >>dot in a symbol name should not be special. > > But , has special backquote syntax and peeks at the ., so ,.s is probably read as ,. s (see backquote). > > Try it out writing `(let ((, .s ,s)) > (untested, i.e. add space between , (backquote) and .s (variable) > > Sometimes spaces are necessary. Thanks for your help. You are of course correct about the problem that I was encountering. I tend to think that ,expr is shorthand for (quote expr) as it is in scheme in which case the space should not be required. Of course this isomorphism is not required in Lisp. -russ |