[fpc-devel]Some pascal enhancement
Aleksey V. Vaneev
picoder at sbis.komi.ru
Fri Oct 12 19:34:53 CEST 2001
Hello,
Dunno if it's actual, but I think it is a good idea to add parameter
to break; and continue; instructions. Like break (2); or continue
(3);
In my practice I've had some problems with several nested while ()
and for() loops. One always needs to have some boolean variable to
signal exiting from main loop.
while (smth) do
begin
for i := 1 to 20 do
if (smth2) then
break; // HERE it is wiser in fact to break upper while() statement
end;
Best regards,
Aleksey mailto:picoder at sbis.komi.ru
More information about the fpc-devel
mailing list