[swift-users] It seems like we really need an #include preprocessor directive?

David Sweeris davesweeris at mac.com
Sun Mar 12 00:21:07 CST 2017


> On Mar 11, 2017, at 22:08, Jens Alfke via swift-users <swift-users at swift.org> 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.

- Dave Sweeris 


More information about the swift-users mailing list