Bug with string(x)
Fri, 20 Jun 1997 00:04:46 +0200
In the following program, the capacity is not handled correctly.
x contains the full alphabet (though it shouldn't), and y contains
garbage (at least on Linux, not on DJGPP).
var y,x:string(10);
begin
y:='';
x:='abcdefghijklmnopqrstuvwxyz';
writeln(x);
writeln(y)
end.
--
Frank Heckenbach, Erlangen, Germany
heckenb@mi.uni-erlangen.de
Turbo Pascal: http://www.mi.uni-erlangen.de/~heckenb/programs.htm
Internet links: http://www.mi.uni-erlangen.de/~heckenb/links.htm
Frank Heckenbach (heckenb@mi.uni-erlangen.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es