On 05/29/2014 07:33 PM, Steven Schveighoffer wrote:

But CTFE is full of code that expects to have a GC running, e.g. string
concatenation for mixins, etc.

Even the following code runs out of memory on my machine:

int foo(){
    foreach(i;0..100000000){}
    return 2;
}
pragma(msg, foo());

I.e. incrementing the loop counter consumes memory.

Reply via email to