loop lopy wrote:
I have compiled my program with gpc --standard-pascal ex1.pas -o ex1.aout I got the following error: ex1.pas:15:Wrong order of declerations according to ISO 7158 Pascal in function 'A' :
My code at line 15 is:
function a (b:integer): integer;
What is wrong with it?
A program doesn't consist of just one line. Always send complete programs as errors might depend on the context. That's general advice. Also turn off HTML mails!
Now, ISO 7185 requires strict ordering (label, const, type, var, routines).
Frank