> On Sep 5, 2017, at 5:11 PM, Jordan Rose via swift-dev <swift-dev@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.
-Andy
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to