[fpc-devel] Optimizing unused return values of inline functions

Kazantsev Alexey kazantsev.alexey at mail.ru
Tue Aug 22 14:42:46 CEST 2017


On Tue, 22 Aug 2017 13:15:24 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:

> Call me old-fashioned, but I much prefer
> 
>    With StdIO::stdOutPrinter() do
>      begin
>      out("Helllo World ");
>      out(42);
>      out("");
>      hex();
>      out(42);
>      line();
>      end;
> 
> I see no point or gain in the "fluent" code.


 SomeProc(Builder
           .Build('1')
           .Build('2')
           .Build('3').Value);

-- 
Kazantsev Alexey



More information about the fpc-devel mailing list