A simple way to do compile time loop unrolling

Nick Sabalausky SeeWebsiteToContactMe at semitwist.com
Fri May 31 12:52:25 PDT 2013


On Fri, 31 May 2013 19:30:10 +0200
"Peter Alexander" <peter.alexander.au at gmail.com> wrote:
>
> 
> mixin(iota(3).map!(i => format("v[%1$d]+=rhs.v[%1$d];", 
> i)).join());

Dayamn! I knew CTFE had improved considerably over the last year or
so, but even I didn't expect something like that to be working already.
That's crazy! :)



More information about the Digitalmars-d mailing list