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
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
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