[Ecls-list] Recursive reading problem with strings

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Mon Sep 25 17:17:25 UTC 2006


2006/9/22, Goffioul Michael <goffioul at imec.be>:
> 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
>
> 2) with internal flags, I transfer the execution to some other function
>
> 3) within this other function, I call READ-FROM-STRING
>
> As the two reading operation at point 1 and 3 share the same internal
> buffer, they overwrite each other.

Fixed in CVS by introducing a pool of buffer strings. Somehow this
slows ECL a little bit. Perhaps the size of the buffers (128
characters) is too small. Time will tell.

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