[fpc-pascal] Inline function parameters

Ryan Joseph genericptr at gmail.com
Mon Nov 8 03:45:11 CET 2021



> On Nov 7, 2021, at 2:17 PM, Jonas Maebe via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
>> Is there anyway a function parameter could be inlined in FPC? This would go a long way in helping to parameterize functions that have tight loops in them.
> 
> It's theoretically possible through constant propagation.

I understand simple constant propagation cases but how does this apply to inlining entire functions? I think C++ can do this with closures so it's something worth looking in to for the future.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list