If somebody could help me with this problem, I would appreciate it.
I am trying to convert the value of a variable to a symbol.
eg.
I call the function with a symbol parameter: (accepts 's1)
the function uses s1's properties etc...
Now I have a list with (s1) in it... and I want to call
(accepts 's1) but without the 's1
ie. (accepts (car list))
how do I do this????
Any help would be appreciated...
Scott
········@muss.cis.mcmaster.ca
········@muss.cis.McMaster.CA (S.K. Gillespie) writes:
> I call the function with a symbol parameter: (accepts 's1)
> the function uses s1's properties etc...
>
> Now I have a list with (s1) in it... and I want to call
>
> (accepts 's1) but without the 's1
>
> ie. (accepts (car list))
>
> how do I do this????
Just like you wrote it: (accepts (car list))
(accepts 's1)
(accepts (car '(s1)))
(let ((l (list 's1)))
(accepts (car l)))
Should all work exactly the same way.
--
Thomas A. Russ, USC/Information Sciences Institute ···@isi.edu