[fpc-pascal] Inline methods
LacaK
lacak at zoznam.sk
Wed May 18 10:06:27 CEST 2016
Hi *,
is it possible inline also methods of objects (not regular procedures) ?
I have very simple class method, which call I need inline.
(looking at assembler code it is not inlined; I have looked also in
documentation, but I do not found article about inline and methods)
Example:
function T2DArray.Data(x, y: integer): PElement; inline;
begin
Result := @FArray[x+y*Fx];
end;
Thanks
-Laco.
More information about the fpc-pascal
mailing list