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