Creating 1000 instances

Siemargl inqnone at gmail.com
Fri Feb 19 10:02:05 UTC 2021


On Friday, 19 February 2021 at 08:29:36 UTC, Ferhat Kurtulmuş 
wrote:

> Since classes are reference types all instances of files will 
> be the same reference of "new File()", which you probably don't 
> want.

Is any differences between x and y definitions?

MyClass [] x, y;
x = new MyClass[7];

y= new MyClass[](8);



More information about the Digitalmars-d-learn mailing list