really stupid error

d007 d007 at gmail.com
Sat Apr 1 09:37:49 UTC 2023


```d
printf("test(v[0]=%p, v[1]=%p, v[2]=%p)\n", &(arr[0][0]), 
&(arr[0][1]), &(arr[0][2]));
ubyte RR = 0;
printf("test(v[0]=%p, v[1]=%p, v[2]=%p)\n", &(arr[RR][0]), 
&(arr[RR][1]), &(arr[RR][2]));
```

first line you get the write output, 3 diff value.

the seconds line you get 3 same value. change `ubyte RR = 0` into 
`emum RR = 0` fix the problem.


test with ldc2 1.32.0


More information about the Digitalmars-d mailing list