dynamic array creation

Myron Alexander someone at somewhere.com
Wed May 9 09:28:45 PDT 2007


Hello.

What is the difference between:

int[] ar = new int[10];

and

int[] ar;
ar.length = 10;

Regards,

Myron.
d_programming...myron_alexander...
(Replace first ... with 'a t', second with .com and remove underscores - 
getting a lot of spam from this list :) ).


More information about the Digitalmars-d-learn mailing list