I think "exit" and "goto" have their uses. Here is an example:
for a := 0 to x do
for b := 0 to y do
for c := 0 to z do
if (...) then
begin
// Do something and then exit all loops
exit; // Or maybe: goto OutSideOfLoops;
end;
In Pascal I can't change the 'a' and 'b' values to force the end of the
loop. So what other GOOD option do I have but to use exit or goto?
Andreas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal