[fpc-pascal] Inline function parameters
Ryan Joseph
genericptr at gmail.com
Sun Nov 7 05:26:51 CET 2021
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.
If there isn't I wonder if this is an area where the proposed "pure" function modifier could be used to make it possible.
===============
type
TSomeFunc = function: boolean;
procedure DoThis(func: TSomeFunc);
begin
if func then
;
end;
function MyFunc: boolean; inline;
begin
end;
begin
DoThis(MyFunc);
end;
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list