home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / lisp / x / 267 < prev    next >
Encoding:
Text File  |  1992-11-09  |  810 b   |  28 lines

  1. Path: sparky!uunet!ogicse!news.tek.com!sail!toma
  2. From: toma@sail.LABS.TEK.COM (Tom Almy)
  3. Newsgroups: comp.lang.lisp.x
  4. Subject: Re: read-from-string
  5. Message-ID: <12864@sail.LABS.TEK.COM>
  6. Date: 9 Nov 92 23:06:23 GMT
  7. Article-I.D.: sail.12864
  8. References: <1992Nov9.073922.22692@newsroom.utas.edu.au>
  9. Reply-To: toma@sail.labs.tek.com
  10. Organization: Tektronix, Inc., Beaverton,  OR.
  11. Lines: 15
  12.  
  13. In article <1992Nov9.073922.22692@newsroom.utas.edu.au> hill@hilbert.cc.utas.edu.au (Kym M. Hill) writes:
  14.  
  15. >    trying to port code from cl. How do i simulate a read-from-string?
  16.  
  17. This is the easiest way:
  18.  
  19. (defun read-from-string (arg)
  20.        (read (make-string-input-stream arg)))
  21.  
  22. if you don't need any of the optional arguments. If you do, send me a message.
  23.  
  24. -- 
  25. Tom Almy
  26. toma@sail.labs.tek.com
  27. Standard Disclaimers Apply
  28.