Static arrays inside struct and class - bug?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Aug 1 11:25:15 PDT 2015
On Saturday, 1 August 2015 at 18:07:51 UTC, NX wrote:
> Sorry, I can't see _the_ point in that.
Yeah, especially since you can jsut break up the array and get
the same effect anyway...
so like if you don't want to dynamically allocate the memory, you
could also try:
byte[1024*1024*8] arr1;
byte[1024*1024*8] arr2;
If they are right next to each other they will still be
continuous in memory and then you work around the limit.
More information about the Digitalmars-d-learn
mailing list