[fpc-pascal] $IMPLICITEXCEPTIONS vs early function return
genericptr at gmail.com
Fri Jul 14 18:41:39 CEST 2023
Curious, exemptions require $IMPLICITEXCEPTIONS (https://www.freepascal.org/docs-html/prog/progsu34.html) or you leak memory with managed types and apparently these try..finally blocks slow down function calls quite a bit.
Question is, how is this different from early function returns? Does the compiler still need to wrap the whole function body in try..finally to capture any places the function could return?
More information about the fpc-pascal