From: Mohamed A. Jeragh
Subject: Help with read-from-string
Date: 
Message-ID: <55jc4t$6q4@mtinsc01-mgt.ops.worldnet.att.net>
I have the folloing code:

> (setf test (read-line))
Please bring the water.
"Please bring the water."
> (read-from-string test)
PLEASE
7
> (read-from-string test :start 7)
PLEASE
7
> (read-from-string test :start 8)
PLEASE
7
> (read-from-string test :start 6)
PLEASE
7
>        

Why cant I continue parsing test?
Please help ASAP,
--MJ

From: Rainer Joswig
Subject: Re: Help with read-from-string
Date: 
Message-ID: <joswig-ya023180000411960903050001@news.lavielle.com>
In article <··········@mtinsc01-mgt.ops.worldnet.att.net>,
·········@·················@worldnet.att.net wrote:

> > (read-from-string test :start 6)
> PLEASE
> 7
> >        
> 
> Why cant I continue parsing test?

Have you looked at the arglist of READ-FROM-STRING ?
Look again.

Rainer Joswig
From: Vassili Bykov
Subject: Re: Help with read-from-string
Date: 
Message-ID: <m3ram98iez.fsf@wintermute.hip.cam.org>
In article <··········@mtinsc01-mgt.ops.worldnet.att.net> 
"Mohamed A. Jeragh" <·········@·················@worldnet.att.net> writes:
 > I have the folloing code:
> 
> > (setf test (read-line))
> Please bring the water.
> "Please bring the water."
> (read-from-string test)
> PLEASE
> 7
> > (read-from-string test :start 7)
> PLEASE
> >7
> [...]

:start and 7 in this call are not treated the way you think.
READ-FROM-STRING has two optional arguments, and you should explicitly
provide them before you can use the keyword ones:

  (read-from-string test t nil :start 7)

--Vassili