What the heck is wrong with CTFE's?

John Colvin john.loughran.colvin at gmail.com
Mon Jul 8 05:57:57 PDT 2013


On Monday, 8 July 2013 at 12:41:22 UTC, John Colvin wrote:
> The i++ in to!string not having any effect is rather 
> surprising, I agree.

Scratch that, there's nothing surprising about it at all. i == 0 
on the first iteration and therefore the first branch of the 
ternary isn't executed. The same thing happens the next iteration 
and so on, leaving i==0 for every iteration.


More information about the Digitalmars-d mailing list