Static arrays inside struct and class - bug?

Daniel Kozak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 1 12:33:13 PDT 2015


V Sat, 01 Aug 2015 19:16:16 +0000
NX via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> napsáno:

> On Saturday, 1 August 2015 at 18:47:00 UTC, Daniel Kozak wrote:
> > Still same problem, You can`t allocate more then 16M on stack. 
> > Use dynamic allocation
> 
> I don't think "new MyStruct" allocates on stack, actually 
> allocating ~16MB on stack will immediatelly crash the program 
> which is not the case with NewExpression.

My fault It is not on stack, but still it is a static allocation



More information about the Digitalmars-d-learn mailing list