[swift-evolution] Does protocol support add to an object's size?

Slava Pestov spestov at apple.com
Wed Feb 15 14:36:56 CST 2017


Values of concrete type always have the same size regardless of what protocols the type conforms to.

Slava
 
> On Feb 15, 2017, at 9:51 AM, Daryle Walker via swift-evolution <swift-evolution at swift.org> wrote:
> 
> I don't know how protocol support works. I asking because I want to maintain the stride of an array being the total count times the stride of the element, which would complicate nominal arrays if adding protocols to one breaks that. 
> 
> Sent from my iPhone
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list