[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string to symbol, how?



On Fri, 5 May 1995, Manfred Stede wrote:

> I know it has been discussed here a while ago, but I thought
> I'd never need it and didn't pay attention :-(  Now I do need
> it: can someone tell me how to convert a string to a symbol?

read-from-string might work for you.

? (read-from-string "symbol")
SYMBOL
6
? (read-from-string "symbol from string")
SYMBOL
7
? (read-from-string "symbol from string" nil 'done :start 12)
STRING
18
(symbolp (read-from-string "symbol from string"))
T
?

Sheldon S. Ball
BALLS@ccc.medcolpa.edu