On Tue, 19 Aug 2014 18:15:33 +0000, ddos wrote: > since i need to setup vertexpointers for opengl at runtime my next > question? - is it possible to evaluate the traits also at runtime? but > i'd also like to know how i can iterate them at compiletime > > thx in advance :)
Take a look at this example: http://dpaste.dzfl.pl/2fdea78a49b6 A foreach becomes compile-time whenever the aggregate is a purely compile- time construct such as a tuple.