Hi,
I've just noticed that there is a bug in the string assignment if a string is passed by value to a procedure and then assigned to. See the excerpt below, the length of "a" after the assignment is still 1. I'm using: adamn@linux:~/pascal/bug/gpc>gpc -v Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/specs Configured with: ../gcc-3.3.1/configure --enable-languages=pascal Thread model: posix gpc version 20040516, based on gcc-3.3.1
--------------------------- program string_value_bug;
procedure P(a:string); begin a:='BC'; writeln('a=',a); end;
begin P('A'); end. ---------------------------
Best, Adam Naumowicz
====================================================================== Department of Applied Logic fax. +48 (85) 745-7662 Institute of Computer Science tel. +48 (85) 745-7559 (office) University of Bialystok e-mail: adamn@mizar.org Sosnowa 64, 15-887 Bialystok, Poland http://math.uwb.edu.pl/~adamn/ ======================================================================