iterate traits ?

Justin Whear via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 19 11:25:24 PDT 2014


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.


More information about the Digitalmars-d-learn mailing list