[fpc-pascal] The reason why linus torvalds hate-pascal
    Andreas Berger 
    Andreas at TheBergerClan.org
       
    Thu Apr 17 21:25:02 CEST 2008
    
    
  
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
    
    
More information about the fpc-pascal
mailing list