[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string to symbol, how?
- To: info-mcl@digitool.com
- Subject: Re: string to symbol, how?
- From: Tom McDougal <mcdougal@cs.uchicago.edu>
- Date: Fri, 5 May 1995 22:35:47 GMT
- Organization: Univ. of Chicago Computer Science
- References: <3ocrgq$7in@waage.rz.uni-ulm.de>
- Sender: owner-info-mcl@digitool.com
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