What the heck is wrong with CTFE's?

Dicebot public at dicebot.lv
Mon Jul 8 05:11:35 PDT 2013


On Monday, 8 July 2013 at 12:08:44 UTC, JS wrote:
> the issue with the foreach is still under question though, when 
> I try to use a for loop with i and access TT[i] I get an error 
> about i not being compile time readable. (maybe this is because 
> of how the type tuple is defined? possibly need a index method 
> to get the value?)

Because i is not a compile-time value, it is a normal variable. 
And TT is a type tuple, pure compile-time entity. You really need 
to study the documentation on this topic or frustration will 
continue.


More information about the Digitalmars-d mailing list