"double symbol"

Started by denis, March 13, 2012, 04:32:36 AM

Previous topic - Next topic

denis

Hi! Maybe a simple question, but why double symbol is not detected as symbol?



(symbol? ''a) ; -> nil
; but
(symbol? (eval ''a)) ; -> true


What type of object is ''a (or e.g. '''''''''''''''''''''a) then?

cormullion

#1
Probably a quoted expression.


> (quote? ''a)
true
> (quote? 'a)
nil


Don't know for sure, though.

denis

#2
Oh, true. Thanks, cormullion!

Needed this to analyze what macroses get in the (args). Complex cases happen when macro calls another macro. Maybe I go in wrong way, but for the moment current the question how to detect the form (type) of argument is relevant :-)