[swift-dev] What can you change in a fixed-contents struct?

Andrew Trick 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...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20170905/44a7d8de/attachment.html>

More information about the swift-dev mailing list