try
Exit; // Works. "Finally" code will be executed.
finally
Exit; // Compile error; but, will work in try/except.
end;
// ==========
for i := 0 to 10 do
begin
try
Break; // Works. "Finally" code will be executed.
Continue; //
finally
Break; // Compile error; but, will work in try/except.
Continue; //
end;
end;
// ==========
goto L1; // Compile error.
goto L2; //
try
L1:
finally
L2:
end;
// ==========
try
goto L1; // Compile error.
goto L2; //
finally
goto L1; // Compile error.
goto L2; //
end;
L1:
L2:
// ==========
try
L2:
goto L1; // Compile error.
finally
L1:
goto L2; // Compile error.
end;
The above is just to summarize different kinds of jumps