[swift-evolution] Allowing mutable members in structs

Charles Constant charles at charlesism.com
Sat Mar 12 11:08:27 CST 2016

What I would find ideal is to keep everything else the same, but add:

struct Foo {
var point =  CGPoint( x:0, y:0 )
*inout* prop: CGPoint {
return *&*self.point

var foo = Foo()

foo.prop.x = 10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160312/f0ca4364/attachment.html>

More information about the swift-evolution mailing list