loop lopy a écrit:
Hello
Here is my code:
program Ex1 (input, output);
type NumNode = record Value: integer; pNext: ^ NumNode; end;
type nNumber = record DigitsAmount:integer; DigitValue:^ NumNode; MSD: integer; DigitBase: integer; end;
function a (b:integer): integer; begin end;
There is nore code, but I dont think it is needed to understand what causes the compiler error. What might cause this compilation error?
I added a begin end. pair to enable to compile with the last alpha. The error message is more explicit (and understandable)
ex1.pas:13: mixed order of declaration parts is an extension of ISO ex1.pas:13: 10206 Extended Pascal, UCSD Pascal, Borland Pascal, ex1.pas:13: Pascal-SC, VAX Pascal, Sun Pascal, traditional Macintosh ex1.pas:13: Pascal
i.e. you have used _twice_ the keyword "type" , which is forbidden in standard pascal. The message disappears with a single "type" keyword. --standard-pascal is _really_ picky.
Maurice