[fpc-devel] Project Idea: Mini-FPC

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Sep 12 09:26:23 CEST 2011


On Sun, Sep 11, 2011 at 1:51 PM, Skybuck Flying <skybuck2000 at hotmail.com> wrote:
> ^ This code should produce an error becomes end is not ended with a
> semicolon –> ;

Looks like you are not aware that Pascal uses semicolon as separators,
not statement enders. AFAIK the code you posted is valid, and so it is
to write for example:

procedure something;
begin
  if X then
  begin
  end // <- no semi-colon
end;

If the identation program has issues with that then you found a bug.

See: http://en.wikipedia.org/wiki/Comparison_of_Object_Pascal_and_C#Semicolon_use

-- 
Felipe Monteiro de Carvalho



More information about the fpc-devel mailing list