home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!Germany.EU.net!unido!idtuva!issun1!harry
- From: harry@issun1.kfk.de (Harald Kucharek)
- Newsgroups: comp.lang.lisp
- Subject: Re: converting from strings to ___
- Message-ID: <BruEr9.Jo3@iai.kfk.de>
- Date: 23 Jul 92 12:59:33 GMT
- References: <1992Jul22.194639.10131@cs.brown.edu>
- Sender: usenet@iai.kfk.de
- Reply-To: harry@issun1.kfk.de
- Organization: Kernforschungszentrum Karlsruhe
- Lines: 18
- Nntp-Posting-Host: issun1
-
-
- In article 10131@cs.brown.edu, map@cs.brown.edu (Mike Perkowitz) writes:
- >
- >i'm working on a system where i'm getting user input through Motif widgets
- >(using CLM). in one part, the user can specify values for certain parameters
- >through a text widget. the problem is that the value held by the text widget
- >will always be a string. i need to be able to treat that string as a number or
- >even as any arbitrary value (t/nil, for example). what it really seems like i
- >need to be able to do is just "remove the quotes" from the string and turn it
- >into a symbol or something. does anybody have any ideas? is this doable? to
- >what extent? any assistance would be greatly appreciated...
-
- To make a string a symbol, you can use (intern <string>) or (make-symbol <string>) or
- (concat-to-symbol <strings>), depending on what exactly you want to do...
-
- Harald Kucharek ($B>.?M(J), Nuclear Research Center Karlsruhe, IDT
- 7514 Eggenstein-Leopoldshafen, Germany
- Internet: harry@issun1.kfk.de Phone: +49 7247 825706
-