How to initialize static array member variable?

bearophile bearophileHUGS at lycos.com
Fri Oct 1 05:10:56 PDT 2010


Sebastian Schuberth:

> With tuples, would it still be that sizeof(Vector)==sizeof(T)*N?

Yes, I think it would (if the types of the tuple are all equal I think there is no padding), a TypeTuple doen't exist at runtime, only its parts exist. In similar situations you save time asking to the compiler.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list