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.

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to