Prof. Harley Flanders wrote:
{ This program compiles and runs with Free Pascal. See GPC compile error below.
Apparently GPC doesn't line "array of string" although it doesn't choke on the declaration }
Which version? Mine does:
foo.p:10: error: syntax error before `of'
var A: array of string;
Array bounds are missing.
If this is yet another form of dynamic arrays, GPC doesn't support this yet. Try schemata:
type StringArray (n: Integer) = array [1 .. n] of String;
var A: ^StringArray;
In addition, you get to choose the lower bound as you like it (e.g., 0, 1, or even also variable).
Frank