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

Re: string to symbol, how?



In article <3ocrgq$7in@waage.rz.uni-ulm.de> Manfred Stede, 
stede@faw.uni-ulm.de writes:
>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?

This is almost an FAQ.

(let ((the-string "hello"))
  (with-input-from-string (string-input-stream  the-string)
    (read string-input-stream)))

-->  HELLO

-- 
Tom McDougal    University of Chicago Artificial Intelligence
     mailto:mcdougal@cs.uchicago.edu 
     http://cs-www.uchicago.edu/~mcdougal
     fax: (312) 702-7108
     PP-RH