Re:The Lost Art of Structure Packing (2018)
by WesolyKubeczek on Monday April 27, 2020 @11:57AM
(#22997029)
Sheesh, we're trying to be ABI-compatible over here.
[ Parent
| on HN ]
Re:The Lost Art of Structure Packing (2018)
by saagarjha on Monday April 27, 2020 @01:01PM
(#22997631)
For interoperability concerns within the language itself, this is usually solved by making the layout algorithm deterministic or passing around the aggregate around with an invisible pointer. When interacting with other languages, typically there's an attribute to ensure that layout matches declaration order.