exit and finally
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
The documentation (http://freepascal.org/docs-html/ref/refse97.html#x202-21200017.3, http://freepascal.org/docs-html/rtl/system/exit.html) should mention that finally blocks are also executed, if exit is called within the try-block.
Unless exit is considered an exception, the current documentation "If no exception occurs inside the statement List, then the program runs as if the Try, Finally and End keywords were not present. " is plain wrong
Mantis conversion info:
- Mantis ID: 21711
- Version: 2.6.0
- Fixed in version: 3.0.0
- Fixed in revision: 900 (#8cb56a57)
- Target version: 3.0.0