[fpc-devel] Optimizing unused return values of inline functions
Benito van der Zander
benito at benibela.de
Wed Aug 23 12:46:42 CEST 2017
Hi,,
> SomeProc(Builder
> .Build('1')
> .Build('2')
> .Build('3').Value);
>
That's exactly what I wanted to use it for
And since a string builder is such a low level construct, mostly used
for performance improvements, it needs to be fast without additional
instructions
Best,
Benito
Am 22.08.2017 um 14:42 schrieb Kazantsev Alexey via fpc-devel:
> 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);
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20170823/38fa4fbd/attachment.html>
More information about the fpc-devel
mailing list