Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!ascwide!ascgw!fgw!fs3260!kagaku!nori From: nori@kagaku.se.fujitsu.co.jp (Noritoshi Rokujo) Newsgroups: comp.lang.lisp Subject: Re: read-from-string problem Message-ID: Date: 21 Dec 90 12:17:28 GMT References: <1990Dec20.115130.20493@cs.nott.ac.uk> Sender: junet@kagaku.se.fujitsu.co.jp Followup-To: comp.lang.lisp Organization: Fujitsu Ltd. Scientific systems DEPT., Tokyo, Japan. Lines: 25 In-reply-to: lpznigel@clan.nott.ac.uk's message of 20 Dec 90 11:51:30 GMT In article <1990Dec20.115130.20493@cs.nott.ac.uk> lpznigel@clan.nott.ac.uk (Nigel Major) writes: Hello > >In an effort to use read-from-string, I came across what >seemed to me to be pretty odd behaviour. At first I thought >it was a bug in my Common Lisp (Lucid 3.0 on a Sun 4/110), but >the same thing happens in AKCL and Poplog CL, so I guess it >is not. Would anyone like to explain it to me? > The syntax of read-from-string is read-from-string string &optional eof-error-p eof-value &key ... So, you must specify optional arguments. >> (read-from-string "abcdefgh" :start 2 :end 3) should be like (read-from-string "abcdefgh" nil nil :start 2 :end 3) -- N. Rokujo, Fujitsu Ltd.