Yet another "static" confusion

bearophile bearophileHUGS at lycos.com
Wed Feb 20 02:23:18 PST 2013


Lubos Pintes:

> Allocating statically sized array bloats the executable.

Because char.init is not '\0'. Try to initialize it with zero:

char[10_000] a = '\0';
void main() {}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list