3 ms·
I think the main reason is that many new languages do this for you, at the cost of not guaranteeing a particular structure member order.
by saagarjha 7y ago
I think the main reason is that many new languages do this for you, at the cost of not guaranteeing a particular structure member order.
- WesolyKubeczek 7y agoSheesh, we're trying to be ABI-compatible over here.
- saagarjha 7y agoFor 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.