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 th
Am 14.07.2023 um 18:41 schrieb Hairy Pixels via fpc-pascal:
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?
There is no difference between early return
> On Jul 14, 2023, at 4:19 PM, Sven Barth wrote:
>
> There is no difference between early return or not, because if the early
> return isn't taken any other path needs to be protected as well. Thus the
> whole function is wrapped which deals with all of that - and also simplifies
> the impl