Small-size-optimized Appender

Paul Backus snarwin at gmail.com
Fri Oct 16 20:55:07 UTC 2020


On Friday, 16 October 2020 at 20:52:48 UTC, Per Nordlöw wrote:
> On Friday, 16 October 2020 at 20:45:24 UTC, Paul Backus wrote:
>> Just remove the @trusted annotation from the function and wrap 
>> the calls to @system functions in @trusted lambdas. Attribute 
>> inference will take care of the rest.
>
> Thanks. Will that be inlined by default or only in release mode?

Immediately-called lambdas are always inlined, even by DMD in 
non-release mode.


More information about the Digitalmars-d mailing list