OK, just checked it in, though it's only received some light testing.
https://github.com/pervognsen/bit...211f0181e16397e3205e9782f2acfaf20
You can now do stuff like this and it properly type checks:
| union IntOrPtr { i: int; p: int*; }
var u1 = IntOrPtr{i = 42}
var u2 = IntOrPtr{p = cast(int*, 42)}
var a: int[256] = {1, 2, ['a'] = 3}
|
Thanks for the prod. :)