I made a program that has a procedure with an array as one of it's parameters
program something ;
const someArray: array[1..4] of integer = (1, 2, 3, 4);
procedure name(someArray: array; a, n: integer);
begin
....
end;
begin
name(someArray, x, y)
end.
After compiling the program I get an error: Fatal: Syntax error, OF expected but ; found (function name() is highlighted)
Why isn't this program working?
someArray)? Although scope may be understood, it unnecessarily introduces some confusion. - lurker