iterate traits ?
ddos via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 19 11:27:52 PDT 2014
On Tuesday, 19 August 2014 at 18:25:24 UTC, Justin Whear wrote:
> 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.
thank you!
More information about the Digitalmars-d-learn
mailing list