<< Prev | - Up - |
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
<< Prev | - Up - |