home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1857 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.2 KB  |  31 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!darwin.sura.net!tulane!cpu.com!cpu.com!GWLESTER
  3. From: gwlester@cpu.com (Gerald W. Lester)
  4. Subject: Re: evalling a string
  5. Nntp-Posting-Host: captainhook.cpu.com
  6. References: <9211171516.AA26302@valiant.src.honeywell.com>
  7. Sender: usenet@cpu.com (Usenet administrator)
  8. Organization: Computerized Processes Unlimited, Metairie, LA, (504)-889-2784
  9. Date: Tue, 17 Nov 1992 16:51:51 GMT
  10. Message-ID: <1992Nov17.165151.10016@cpu.com>
  11. Reply-To: gwlester@cpu.com
  12. Lines: 17
  13.  
  14. In article <9211171516.AA26302@valiant.src.honeywell.com>, jkimball@src.honeywell.com (John Kimball) writes:
  15. >Seems to me this should be easy, but I'm having trouble thinking of a good
  16. >way to do it.
  17. >
  18.     I don't think there is.
  19.  
  20. >I can't simply eval the string, because eval wants stuff-stuff to be a
  21. >command name.  If I use lindex to tease apart the top-level chunks, I lose
  22. >the information about which chunks were wrapped in double quotes and which
  23. >ones were wrapped in curly braces.  As a workaround, I can define a proc
  24. >stuff-stuff, but that seems unusually perverse.
  25. >
  26. >What am I missing?
  27. >
  28.     You could handle all of the stuff-stuff routines at one time by hacking
  29. on the unknown procedure.
  30.  
  31.