core.simd ubyte16 initialization weirdness.

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon May 8 11:43:33 UTC 2023


Don't forget to type bad2 which gives the same result as the good one. 
Otherwise it only has 7 elements in it.

```d
static immutable ubyte16 bad2 = [1, 2, 3, 4, 5, 6, 7];
```

```
[1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[101, 102, 103, 104, 105, 106, 107, 100, 100, 100, 100, 100, 100, 100, 
100, 100]
```


More information about the Digitalmars-d-learn mailing list