home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / lisp / 2081 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.4 KB

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