[fpc-pascal] $IMPLICITEXCEPTIONS vs early function return
pascaldragon at googlemail.com
Sat Jul 15 00:19:25 CEST 2023
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 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 implementation.
More information about the fpc-pascal