Waldek Hebisch wrote:
The following ugly syntax (taken from FPC sources :) is not accepted even in Borland Pascal mode (supposedly BP compiles the code):
unit ttt; interface function foo(const s : string) : integer; implementation function foo(const s : string) : integer; var i,j:integer; begin for i:=1to 5 do j:=j+1;
^
space missing !
foo := j;
end; end.
The compiler complines about 'nondigits in number whose radix <= 10' in the line containing 'for' and then cannot find 'to' or 'downto'.