6.3.3 Quit Loops

The break feature of loops is implemented by using exception handling.

for 
   ... 
   break:Break
do 
   ...  {Break} ... 
end

The above loop is replaced by an statement of the following form:

try 
   for 
      ... 
   do 
      ... raise break end ... 
   end 
catch Exception then 
   case Exception of break
   then skip 
   else raise Exception end 
   end 
end


Denys Duchier, Claire Gardent and Joachim Niehren
Version 1.3.99 (20050412)