|
|
|
|
|
by burfog
3675 days ago
|
|
This is indeed a rust failing. There are no untagged unions. There should be. Obviously, unions with pointers are special. Some code might need to be marked unsafe. I suspect there is a subset of pointer-in-union operations that could be made safe, possibly either changing or using the pointer but not both. Another thing missing is bifields. I'd love to see this done right, with adjustable packing so that one can use them to write an emulator or file parser. |
|