On Sun, 20 Aug 2017, Benito van der Zander wrote:
Hi,
why does fpc not remove the calculation of the return value of inline
functions, when the return value is unused?
For example
type TUtility = class
function doSomething: TUtility; inline;
end;
It is a popular pattern to add result :
Hi,
why does fpc not remove the calculation of the return value of inline
functions, when the return value is unused?
For example
type TUtility = class
function doSomething: TUtility; inline;
end;
function TUtility.dosomething: TUtility;
begin
writeln();
result := self;
end;
adds a