Errors
finally
Run after try, whether or not an exception occurred.
Syntax
finally;
...
end;
How she behaves
- Cleanup, last words, closing a door — whatever must happen either way.
- Still ends with end;. I am consistent about this.
Example
try;
showln x;
end;
catch(error);
showln error;
end;
finally;
showln "done";
end;