Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

^@

Name: Anonymous 2009-11-30 15:13

C:\Users\anon>^@
More?

Name: Anonymous 2009-12-01 10:54

>>20
Yes, but since ( and #' are both reader macros:

CL-USER> (get-macro-character #\()
#<FUNCTION SB-IMPL::READ-LIST>
NIL
CL-USER> (get-macro-character #\#)
#<FUNCTION SB-IMPL::READ-DISPATCH-CHAR>
T
CL-USER> (get-dispatch-macro-character #\# #\')
#<FUNCTION SB-IMPL::SHARP-QUOTE>

If you used a variable named that, the reader would end up calling the reader macros, thus your variable name won't end up being read. To explicitly use that symbol name, you have to use a multiple escape character to designate it: |(#'|:

CL-USER> (symbol-name '|(#'|)
"(#'"

For more information on this: http://www.lispworks.com/documentation/HyperSpec/Body/02_ade.htm

If you had some really strange/minimalistic readtable where you wouldn't use () to designate lists and #' wouldn't be a dispatch macro character for (function _), then you could actually use (#' freely as a symbol name without having to use the multiple escape.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List