Consider this code:
unit uglobals;
{$mode objfpc}{$H+}
interface
const
BORD_WIDTH = 8;
uses
Classes, SysUtils;
implementation
end.
Compilator show me error:
uglobals.pas(8,1) Fatal: Syntax error, "IMPLEMENTATION" expected but "USES" found
Because obviously const
section must be after uses
section.
Where can I find documentation which gives the order of sections?
I've searched in Google and freepascal.org but I did not find anything about the required order of the sections.