Small vector and matrix proposed for phobos2 now on github

bearophile bearophileHUGS at lycos.com
Mon Apr 26 03:57:19 PDT 2010


#ponce:

> I'm not sure how your static foreach is actually static.

It's a foreach on:

template TypeNuple(T, size_t n) {
    static if(n == 0) {
        alias TypeTuple!() TypeNuple;
    }
    else {
        alias TypeTuple!(T,TypeNuple!(T, n-1)) TypeNuple;
    }
}

So with the current D it's a static foreach.

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list