--- Comment #2 from 2011-06-01 14:50:48 PDT ---
Static foreach loops have a small disadvantage. This is the original code:

const int sum1 = foo!10() + foo!15() + foo!80();

The same using a static foreach:

int sum2;
foreach (x; TypeTuple!(10, 15, 80))
  sum2 += foo!x();

The small disadvantage is that now x can't be const.
In theory a smarter type system is able to see sum2 too is const.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to