Stack allocation of dynamic arrays?

Robert Fraser fraserofthenight at gmail.com
Wed Aug 8 13:30:52 PDT 2007


I know that by using "scope" you can allocate a class on the stack rather than the heap. For this line:

scope int[] arr = new int[5000];

... is arr allocated on the heap or on the stack?


More information about the Digitalmars-d-learn mailing list