Static array size?

Suliman via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 9 03:22:28 PST 2017


Docs says that:
"The total size of a static array cannot exceed 16Mb."
But when I am creation array of:
int [1000_000] x; // 1000_000 is equal ~ 0,95MB
app crush on start.

Should it's reserve this memory with guaranty? I mean that after 
app start it should take +0.95MB of RAM in task manager.


More information about the Digitalmars-d-learn mailing list