[Lazarus] try finally exit

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Jun 29 15:01:59 CEST 2013


On Sat, 29 Jun 2013 14:46:26 +0200
Jürgen Hestermann <juergen.hestermann at gmx.de> wrote:

> Am 2013-06-29 14:27, schrieb Mattias Gaertner:
>  > The language syntax is not described in the wiki. It is available as pdf and html.
> 
> You mean this: http://www.freepascal.org/docs-html/rtl/system/exit.html ?

Yes, that would be a good place to add a note about try..finally.


> How does this answer the question of this thread?
> It says:
> 
> Exit exits the current subroutine, and returns control to the calling routine. If invoked in the main program routine, exit stops the program.
> 
> Where does it tell that any finaly block will still be executed?
> Just the opposite: It suggests that exit always exits immediately
> without executing any other code of the routine.
> This seems to be not true.

Michael Van Canneyt maintains these docs.
I will ask him.

Mattias




More information about the Lazarus mailing list