[Ecls-list] Recursive reading problem with strings
Juan Jose Garcia-Ripoll
juanjose.garciaripoll at googlemail.com
Fri Sep 22 12:37:54 UTC 2006
2006/9/22, Goffioul Michael <goffioul at imec.be>:
> Hi,
>
> I came across a very annoying problem while reading stuff from a gray
> stream recursively. The situation is the following:
>
> 1) the LISP reader has read the beginning of a string and wait for the
> next character: the current string content is accumulated into
> cl_env.token
>
> 2) with internal flags, I transfer the execution to some other function
> (I read the next char, and if it is a well recognized flag, I execute
> the function, then get back to reading the next char)
>
> 3) within this other function, I call READ-FROM-STRING: this has the
> effect
> to erase the previously accumulated string content by setting the
> fill-pointer of cl_env.token to 0
>
> As the two reading operation at point 1 and 3 share the same internal
> buffer, they overwrite each other. I looked at the recursive-p flag
> available in the READ routines, but it seems to only set system
> variables,
> it does not seem to save cl_env.token. Is there a workaround to this
> problem?
Looks like a bug.
Juanjo
--
Max-Planck-Institut für Quantenoptik
Hans-Kopfermann-Str. 1, Garching, D-85748, Germany
Phone: +49 89 32905 345 Fax: +49 89 32905 336
http://www.mpq.mpg.de/Theorygroup/CIRAC/
More information about the ecl-devel
mailing list