Hi again,
> Hello, > >> Am 30.06.2017 um 10:55 schrieb Daryle Walker via swift-evolution >> <swift-evolution@swift.org <mailto:swift-evolution@swift.org>>: >> >> I was thinking posing aliases would be like symbolic substitution; we could >> replace the alias with the text defining its source expression everywhere >> and there should be no efficiency change. But I would want any evaluation of >> the (sub-)object’s location to be computed once; is that where complexity >> could come in? I was hoping that object location determination could be done >> at compile-time; that’s the reason for restricting what kinds of objects can >> be a source object. > > Have you had a look at local `inout` bindings as proposed in the Ownership > Manifesto[1]? yes of course you have, because you already replied to John ;-) sorry for not reading the complete thread :-/ And yes, these local bindings would effectively just be a new binding for the same memory location. This way it really would be a compile-time alias. — Martin
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution