J. Gareth Moreton via fpc-devel <fpc-devel@lists.freepascal.org> schrieb am
Do., 6. Mai 2021, 20:03:

> The rule with try...finally is that, outside of something completely
> catastrophic that destroys the program flow, is that once you enter the
> try part, the finally part is guaranteed to be executed no matter how
> you leave it.

There are two exceptions (pun not intended :P ):

- Halt (or any other OS function that never returns and terminates the
- LongJmp (because that knows nothing about exception handlers)

Other than that, you're right and what Ryan is trying to do is definitely
the intended purpose of try ... finally.

fpc-devel maillist  -  fpc-devel@lists.freepascal.org

Reply via email to