Static array size limit

simendsjo simen.endsjo at pandavre.com
Mon Apr 4 23:57:02 PDT 2011


And it seems also Walter is meaning mebibytes:

enum size = (16*1024*1024)/int.sizeof;
static assert(!__traits(compiles, int[size]));
static assert(__traits(compiles, int[size-1]));


More information about the Digitalmars-d-learn mailing list