DMD and GDC are unnecessarily using heap allocations for closures

user1234 user1234 at 12.de
Mon May 30 07:42:29 UTC 2022


On Monday, 30 May 2022 at 06:47:24 UTC, Siarhei Siamashka wrote:
> Consider the following example:
>
> ```D
> import std.algorithm, std.range, std.stdio;
>
> [...]

maybe `private long binary_search(long n, long val, long i){...}` 
will make think other compilers that the stuff is only used 
localy ?


More information about the Digitalmars-d mailing list