Set array size to simplify mem mgmt

Ald aldarri_s at yahoo.com
Thu Jul 5 06:47:07 PDT 2007


Hello.

I have the following code:

char[] unitStack = new char[256];
unitStack.length = 0;

Does it make sense from viewpoint of simplifying memory management?  If I enlarge the size, the array won't be reallocated?


More information about the Digitalmars-d-learn mailing list