[fpc-pascal] Changing compiler modes
Bo Berglund
bo.berglund at gmail.com
Mon Jul 1 20:41:14 CEST 2019
On Mon, 1 Jul 2019 13:37:54 -0400, "James Richters"
<james at productionautomation.net> wrote:
>For X := 1 to 10 do
> Begin
> If somethingmakesmewanttoexit then
> X:=10;
> If somethinmakesmewanttoskipthenextthing then
> Inc(X);
> End;
Why not:
For X := 1 to 10 do
Begin
If somethingmakesmewanttoexit then
break;
If somethinmakesmewanttoskipthenextthing then
continue;
Regularprocessing;
End;
--
Bo Berglund
Developer in Sweden
More information about the fpc-pascal
mailing list