[fpc-devel] Defer keyword
Sven Barth
pascaldragon at googlemail.com
Fri May 7 00:05:53 CEST 2021
J. Gareth Moreton via fpc-devel <fpc-devel at 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
process)
- 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.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210507/acbb9603/attachment-0001.htm>
More information about the fpc-devel
mailing list