[fpc-pascal] Inline function parameters
Ryan Joseph
genericptr at gmail.com
Tue Nov 9 02:45:21 CET 2021
> On Nov 8, 2021, at 11:20 PM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>
> I don't know what you mean with "new function body". If a function is inlined its code is contained within the surrounding function and if it's not inlined then nothing changes.
>
I mean if in theory you were to inline that function variables code into the function it would need to generate a new function (I guess the name also, so the entire thing) because the function being passed in could change on per-call basis (like a normal generic function).
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list