LDC 0.12.0 has been released

bearophile bearophileHUGS at lycos.com
Wed Oct 23 12:28:40 PDT 2013


David Nadlinger:

> You are right, it shouldn't even allocate the lambda in the 
> first
> place, but even if it did, one of the optimization passes should
> actually promote the allocation to the stack. Investigating…

Please note the successive email I have written, where I have 
fixed a mistake. I have copied two times the same code. The code 
with the __d_allocmemory is the one with:

             enum circle = (in int c, in int r) pure nothrow =>
                 r ^^ 2 >= (x / 2) ^^ 2 + (y - c) ^^ 2;

Bye,
bearophile


More information about the digitalmars-d-ldc mailing list