"Prof A Olowofoyeku (The African Chief)" wrote:
... snip ...
Ok. While you are at it, there is another minor one. This program: program athen; {$delphi} begin If ParamCount = 0 then; Writeln ('OK'); end.
generates a warning: athen.pas: In main program: athen.pas:4: warning: `;' after `then'
Should this warning be generated in BP mode?
What possible reason could there be for suppressing it? The only use I can see for such a statement is to discard the return value from a function named ParamCount that has side effects, and that is much more clearly done with: "junk := ParamCount;"