[swift-dev] What can you change in a fixed-contents struct?
atrick at apple.com
Tue Sep 5 21:20:49 CDT 2017
> On Sep 5, 2017, at 5:11 PM, Jordan Rose via swift-dev <swift-dev at swift.org> wrote:
> Another idea would be to restrict @fixedContents to require that all stored properties appear contiguously in the struct, possibly even pinned to the top or bottom, to indicate that order's not completely arbitrary. Again, that's just an improvement, not full protection.
I’m a big fan of syntactically pinning the stored properties at the top whenever their layout is part of the ABI.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev