> On Mar 11, 2017, at 10:21 PM, David Sweeris <daveswee...@mac.com> wrote:
> 
>> (I see absolutely nothing wrong with inheritance, and it solves exactly this 
>> sort of problem. Yes, structs can’t inherit, but they can contain a common 
>> struct as a member, which is quite similar and addresses this issue.)
> 
> That forces you into reference semantics, though.

No it doesn’t. A struct member of a struct is still a value. If you put a 
common class instance in a struct, that would be reference semantics.

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

Reply via email to