Dav1dde / gl3n

OpenGL Maths for D (not glm for D).
http://dav1dde.github.com/gl3n/
Other
103 stars 49 forks source link

Clean up some foreach statements #22

Closed ghost closed 10 years ago

ghost commented 10 years ago

No need for TupleRange template trickery, is there?

Dav1dde commented 10 years ago

There is, this is a compile-time unrolled foreach, which means, in the generated assembler is no loop.

ghost commented 10 years ago

Thanks! I was completely unaware that you could write an unrolled loop this way. Now looking at the templates I should have understood it's not gonna iterate at runtime. This stuff is gonna be useful...