Loop optimization

Ali Çehreli acehreli at yahoo.com
Sat May 15 17:33:38 PDT 2010


Steven Schveighoffer wrote:

 >     double [] foo = new double [cast(int)1e6];
 >     foo[] = 0;

I've discovered that this is the equivalent of the last line above:

   foo = 0;

I don't see it in the spec. Is that an old or an unintended feature?

Ali


More information about the Digitalmars-d-learn mailing list