From: Stas B. <sta...@gm...> - 2009-06-18 15:38:43
|
"Arindam Roy" <ari...@fa...> writes: > I need help in understanding the seeming inconsistency in the following > sequence of commands: > > CL-USER>(type-of (intern "ABC")) > SYMBOL > CL-USER>(defvar (intern "ABC")) > > The value (INTERN "ABC") is not of type SYMBOL > [Condition of type TYPE-ERROR] > defvar is a macro and it doesn't evaluate the first argument. One way is (proclaim `(special ,(intern "ABC" :package))) And if you want to set its value: (setf (symbol-value symbol) value) -- With best regards, Stas. |