Re: [swift-evolution] [Swift4][Pitch] Control struct layout with @layout, @offset, @order

2016-08-22 Thread Russ Bishop via swift-evolution
No problem, I'll put it on the back burner for the time being. Russ > On Aug 19, 2016, at 12:50 PM, Joe Groff wrote: > > >> On Aug 17, 2016, at 11:28 AM, Russ Bishop via swift-evolution >> wrote: >> >> I wanted to gauge the interest in

Re: [swift-evolution] [Swift4][Pitch] Control struct layout with @layout, @offset, @order

2016-08-19 Thread Joe Groff via swift-evolution
> On Aug 17, 2016, at 11:28 AM, Russ Bishop via swift-evolution > wrote: > > I wanted to gauge the interest in supporting explicit struct layout and > alignment. > > The general idea would be to support attributes to create packed structs and > set alignment. It

Re: [swift-evolution] [Swift4][Pitch] Control struct layout with @layout, @offset, @order

2016-08-17 Thread Chris Lattner via swift-evolution
> On Aug 17, 2016, at 11:37 AM, Mark Lacey via swift-evolution > wrote: > > >> On Aug 17, 2016, at 11:28 AM, Russ Bishop via swift-evolution >> > wrote: >> >> I wanted to gauge the interest in supporting

Re: [swift-evolution] [Swift4][Pitch] Control struct layout with @layout, @offset, @order

2016-08-17 Thread Slava Pestov via swift-evolution
Hi Russ, Keep in mind you can control layout of structs by defining them in C (using __attribute__((packed)) and so on), and using them as imported types in Swift. As Mark mentioned, we can add this later if we need it, so it’s probably out of scope for now. Slava > On Aug 17, 2016, at 11:28

Re: [swift-evolution] [Swift4][Pitch] Control struct layout with @layout, @offset, @order

2016-08-17 Thread Mark Lacey via swift-evolution
> On Aug 17, 2016, at 11:28 AM, Russ Bishop via swift-evolution > wrote: > > I wanted to gauge the interest in supporting explicit struct layout and > alignment. > > The general idea would be to support attributes to create packed structs and > set alignment. It