No subject


Mon Feb 11 23:15:10 PST 2008


Direct initialisation is fine:

float a[10] = [0,0,0,0,0,0,0,0,0,0];

(compiler appears to generate "template" struct to initalise array and
following int in one go with rep movsd.

esi points to a correct "template" in this case.


In the case of 

...
const float[10] i = [0,0,0,0,0,0,0,0,0,0];
float a[10] = i;
...

Code is the same, but the "template" is wrong. Presumably because the compiler
does not understand the const array initialiser properly. 


-- 



More information about the Digitalmars-d-bugs mailing list