> On 01-Aug-2016, at 5:17 PM, Chris McIntyre <nothingwasdelive...@gmail.com> 
> wrote:
> 
> Swift's strideOf my give you what you want (I'm not at my Mac to test)


It doesn’t. Swift uses a different layout than C. In the earlier example code, 
strideof(Bar) is 8 in Swift, whereas sizeof(Bar) is 12 in C.

Best
KS Sreeram

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to