Peter N Lewis wrote:
What does the following program do?
program test;
type Str255 = array[0..255] of char;
var a,b: Str255; begin a := a + b; end.
I would have expected it to error, but it compilers fine. Is this some sort of support for strings, cstrings or something?
I think it's treating the arrays as strings (of fixed size), concats them, and truncates the result when assigning to a. So effectively, it does nothing. ;-) That might be a misfeature, but I'm reluctant to do something about it now, until the whole string stuff is reorganized ... Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707