On Sunday, 23 March 2014 at 14:22:07 UTC, Phil wrote:
I'm a bit confused about how this example works. I thought foreach was a runtime loop, so how does nesting static ifs inside it work?
foreach() over a tuple is unrolled at compile time.
On Sunday, 23 March 2014 at 14:22:07 UTC, Phil wrote:
I'm a bit confused about how this example works. I thought foreach was a runtime loop, so how does nesting static ifs inside it work?
foreach() over a tuple is unrolled at compile time.