[fpc-pascal] Inline function parameters
Ryan Joseph
genericptr at gmail.com
Thu Nov 11 02:52:08 CET 2021
> On Nov 9, 2021, at 1:09 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> No, because the function that is called with a function pointer needs to be inlined itself (thus becoming part of its caller) so that constant propagation works at all for the parameters. If a function isn't inlined then there won't be any change and the passed in function variable will be called as usual.
I mean in theory if the compiler were to support inlining function pointers that is how it could be done.
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list