9 *(cast(float*) array) = 2.0;
10 *(cast(float*) array + 1) = 2.1;
11 printf("(float*).sizeof = %d\n", (float*).sizeof);
12 printf("(float[4]).sizeof = %d\n", (float[4]).sizeof);
13 printf("array.sizeof = %d\n", array.sizeof);
14 printf("array.length = %d\n", array.length);
15 printf("cast(float*) array = %X\n", cast(float*) array);
16 printf("cast(float*) array + 1 = %X\n", cast(float*) array + 1);
17 foreach (uint key, float val; array)
19 printf("array[%u] = %f\n", key, val);
21 printf("----------------------------------------\n");
29 *(cast(float*) darray) = 2.0;
30 *(cast(float*) darray + 4) = 2.1;
31 // 8: 4 para la cantidad, 4 para el puntero al primero
32 printf("darray.sizeof = %d\n", darray.sizeof);
33 printf("darray.length = %d\n", darray.length);
34 printf("cast(float*) darray = %X\n", cast(float*) darray);
35 printf("cast(float*) darray + 1 = %X\n", cast(float*) darray + 1);
36 foreach (uint key, float val; darray)
38 printf("darray[%u] = %f\n", key, val);