home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.tek.com!sail!toma
- From: toma@sail.LABS.TEK.COM (Tom Almy)
- Newsgroups: comp.lang.lisp.x
- Subject: Re: read-from-string
- Message-ID: <12864@sail.LABS.TEK.COM>
- Date: 9 Nov 92 23:06:23 GMT
- Article-I.D.: sail.12864
- References: <1992Nov9.073922.22692@newsroom.utas.edu.au>
- Reply-To: toma@sail.labs.tek.com
- Organization: Tektronix, Inc., Beaverton, OR.
- Lines: 15
-
- In article <1992Nov9.073922.22692@newsroom.utas.edu.au> hill@hilbert.cc.utas.edu.au (Kym M. Hill) writes:
-
- > trying to port code from cl. How do i simulate a read-from-string?
-
- This is the easiest way:
-
- (defun read-from-string (arg)
- (read (make-string-input-stream arg)))
-
- if you don't need any of the optional arguments. If you do, send me a message.
-
- --
- Tom Almy
- toma@sail.labs.tek.com
- Standard Disclaimers Apply
-