> On Nov 9, 2021, at 1:09 PM, Sven Barth via fpc-pascal > <fpc-pascal@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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal