Casting int[] to ubyte[]: element wise cast or slice cast
kdevel
kdevel at vogtner.de
Sun Feb 17 01:38:55 UTC 2019
On Friday, 15 February 2019 at 18:11:11 UTC, Dennis wrote:
Your should report our observation: https://issues.dlang.org
```
void main ()
{
enum A = [0x10203040, 0x50607080]; // shall enum behave like
immutable?
auto B = [0x10203040, 0x50607080];
assert (A == B);
auto p = cast (ubyte []) A;
auto q = cast (ubyte []) B;
assert (p == q);
}
```
More information about the Digitalmars-d-learn
mailing list