Re: [Lazarus] Semicolon checking

2017-01-16 Thread Martin Frb via Lazarus
On 16/01/2017 12:29, DougC via Lazarus wrote: I'm not going to kick you, Mark, as your comments are spot on. What I think wold be very helpful to the FPC community is a warning that is issued when a semi-colon is immediately followed by a "begin" as that is an unusual construct and, as shown

Re: [Lazarus] Semicolon checking

2017-01-16 Thread Mark Morgan Lloyd via Lazarus
On 16/01/17 07:30, Lars via Lazarus wrote: On Sun, January 15, 2017 3:30 pm, Vojtěch Čihák via Lazarus wrote:> Hello, has Lazarus (CodeTools) or FPC some checking for empty commands? I> accidentally did this stupid mistake: > if ... then begin>> end else;> begin> ...> exit;>

Re: [Lazarus] Semicolon checking

2017-01-15 Thread Lars via Lazarus
On Sun, January 15, 2017 3:30 pm, Vojtěch Čihák via Lazarus wrote: > Hello, has Lazarus (CodeTools) or FPC some checking for empty commands? I > accidentally did this stupid mistake:   > if ... then begin > >   end else; >   begin >     ... >     exit; >   end; >   Yikes! I think you just

[Lazarus] Semicolon checking

2017-01-15 Thread Vojtěch Čihák via Lazarus
Hello, has Lazarus (CodeTools) or FPC some checking for empty commands? I accidentally did this stupid mistake:   if ... then   begin      ...   end else;   begin     ...     exit;   end;   Note the semicolon behind the "else". Semicolon as an empty command is sometimes useful (temporary